|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.swabunga.spell.swing.JTextComponentSpellChecker
public class JTextComponentSpellChecker
This class spellchecks a JTextComponent throwing up a Dialog everytime it encounters a misspelled word.
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |