public class JTextComponentSpellChecker extends java.lang.Object implements SpellCheckListener
Constructor and Description |
---|
JTextComponentSpellChecker(SpellDictionary dict) |
JTextComponentSpellChecker(SpellDictionary dict,
SpellDictionary userDict,
java.lang.String title) |
JTextComponentSpellChecker(java.lang.String dictFile) |
JTextComponentSpellChecker(java.lang.String dictFile,
java.lang.String title) |
JTextComponentSpellChecker(java.lang.String dictFile,
java.lang.String phoneticFile,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
void |
setUserDictionary(SpellDictionary dictionary)
Set user dictionary (used when a word is added)
|
int |
spellCheck(javax.swing.text.JTextComponent textComp)
This method is called to check the spelling of a JTextComponent.
|
void |
spellingError(SpellCheckEvent event)
Propagates the spelling errors to listeners.
|
void |
startAutoSpellCheck(javax.swing.JEditorPane pane) |
void |
stopAutoSpellCheck(javax.swing.JEditorPane pane) |
public JTextComponentSpellChecker(SpellDictionary dict)
public JTextComponentSpellChecker(java.lang.String dictFile) throws java.io.IOException
java.io.IOException
public JTextComponentSpellChecker(java.lang.String dictFile, java.lang.String title) throws java.io.IOException
java.io.IOException
public JTextComponentSpellChecker(java.lang.String dictFile, java.lang.String phoneticFile, java.lang.String title) throws java.io.IOException
java.io.IOException
public JTextComponentSpellChecker(SpellDictionary dict, SpellDictionary userDict, java.lang.String title)
public void setUserDictionary(SpellDictionary dictionary)
public int spellCheck(javax.swing.text.JTextComponent textComp)
textComp
- The JTextComponent to spellcheck.public void startAutoSpellCheck(javax.swing.JEditorPane pane)
pane
- public void stopAutoSpellCheck(javax.swing.JEditorPane pane)
pane
- public void spellingError(SpellCheckEvent event)
SpellCheckListener
spellingError
in interface SpellCheckListener
event
- The event to handle