com.swabunga.spell.swing
public class JTextComponentSpellChecker extends Object implements SpellCheckListener
Constructor Summary | |
---|---|
JTextComponentSpellChecker(SpellDictionary dict) | |
JTextComponentSpellChecker(String dictFile) | |
JTextComponentSpellChecker(String dictFile, String title) | |
JTextComponentSpellChecker(String dictFile, String phoneticFile, String title) | |
JTextComponentSpellChecker(SpellDictionary dict, SpellDictionary userDict, String title) |
Method Summary | |
---|---|
void | setUserDictionary(SpellDictionary dictionary)
Set user dictionary (used when a word is added) |
int | spellCheck(JTextComponent textComp)
This method is called to check the spelling of a JTextComponent.
|
void | spellingError(SpellCheckEvent event) |
void | startAutoSpellCheck(JEditorPane pane) |
void | stopAutoSpellCheck(JEditorPane pane) |
Parameters: textComp The JTextComponent to spellcheck.
Returns: Either SpellChecker.SPELLCHECK_OK, SpellChecker.SPELLCHECK_CANCEL or the number of errors found. The number of errors are those that are found BEFORE any corrections are made.
Parameters: pane
Parameters: pane