com.swabunga.spell.swing
Class JTextComponentSpellChecker
java.lang.Object
com.swabunga.spell.swing.JTextComponentSpellChecker
- All Implemented Interfaces:
- java.util.EventListener, SpellCheckListener
- public class JTextComponentSpellChecker
- extends java.lang.Object
- implements SpellCheckListener
This class spellchecks a JTextComponent throwing up a Dialog everytime
it encounters a misspelled word.
- Author:
- Robert Gustavsson ([email protected])
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTextComponentSpellChecker
public JTextComponentSpellChecker(SpellDictionary dict)
JTextComponentSpellChecker
public JTextComponentSpellChecker(java.lang.String dictFile)
throws java.io.IOException
JTextComponentSpellChecker
public JTextComponentSpellChecker(java.lang.String dictFile,
java.lang.String title)
throws java.io.IOException
JTextComponentSpellChecker
public JTextComponentSpellChecker(java.lang.String dictFile,
java.lang.String phoneticFile,
java.lang.String title)
throws java.io.IOException
JTextComponentSpellChecker
public JTextComponentSpellChecker(SpellDictionary dict,
java.lang.String title)
setUserDictionary
public void setUserDictionary(SpellDictionary dictionary)
- Set user dictionary (used when a word is added)
spellCheck
public int spellCheck(javax.swing.text.JTextComponent textComp)
spellingError
public void spellingError(SpellCheckEvent event)
- Specified by:
spellingError
in interface SpellCheckListener