开发者

JTextArea Real Time Spell Checker

I need a good spell checker library for Java that 开发者_运维问答can spell check a JTextArea (or any JTextComponent) in real time. That is, it should have a wavy red underline appear under text while the user is typing.

It needs to be able to list all the available word replacements by left clicking (yes, left clicking) the word. If not possible, right-click is fine.

It needs to have an "Ignore All," but not an Add, Ignore, or any of the others. Just Ignore All.

Ideally, you should be able to change how the dropdown box looks, at least to some extent.

No user-spell checker is needed. That is, I don't need a button that when you click it brings up a spell check dialog, I only need real time checking. I actually already have a spell checking dialog library.

If someone can suggest a good library (I am willing to pay for it) or, better yet, explain a good method for doing this to a textarea in the first place that would be fantastic.

At the very least if someone could explain how to check the JTextArea against my dictionary and put the red underline and the dropdown on clicking or any of these steps that would be a great start.

Thanks for the potential help.


http://jortho.sourceforge.net/

Sample can be seen here http://www.inetsoftware.de/other-products/jortho/sample


Trying to make a complete list. Feel free to add.

Full-blown solutions

  • JOrtho
    • Wordlist comes from Wiktionary
  • JaSpell is a Java implementation of the popular Aspell.
  • JMySpell
    • Uses the OpenOffice.org dictionaries
  • Wintertree
    • non-free

Libraries

  • HunspellJNA used as backend by LanguageTool
  • Jazzy
  • JSpell SDK can be used as basis
  • LanguageTool also includes a Grammar check
    • a small wrapper application is shown at https://github.com/pminos/languagetool-wrapper-demo-parent
  • Suggester


Decided to go with Wintertree

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜