Explosion Pills
Explosion Pills

Reputation: 191809

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.

Upvotes: 4

Views: 4842

Answers (3)

koppor
koppor

Reputation: 20551

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

Upvotes: 2

Explosion Pills
Explosion Pills

Reputation: 191809

Decided to go with Wintertree

Upvotes: 0

Related Questions