org.formaria.editor.langed
Class JTextComponentSpellChecker

java.lang.Object
  extended by org.formaria.editor.langed.JTextComponentSpellChecker

public class JTextComponentSpellChecker
extends java.lang.Object

This class spellchecks a JTextComponent throwing up a Dialog everytime it encounters a misspelled word.


Constructor Summary
JTextComponentSpellChecker(SpellDictionary dict)
           
JTextComponentSpellChecker(SpellDictionary dict, java.lang.String title)
           
JTextComponentSpellChecker(java.lang.String dictFile, java.lang.String title)
           
JTextComponentSpellChecker(java.lang.String dictFile, java.lang.String phoneticFile, java.lang.String title)
           
 
Method Summary
 int spellCheck(javax.swing.text.JTextComponent textComp)
           
 void spellingError(SpellCheckEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTextComponentSpellChecker

public JTextComponentSpellChecker(SpellDictionary dict)

JTextComponentSpellChecker

public JTextComponentSpellChecker(java.lang.String dictFile,
                                  java.lang.String title)
                           throws java.io.IOException
Throws:
java.io.IOException

JTextComponentSpellChecker

public JTextComponentSpellChecker(java.lang.String dictFile,
                                  java.lang.String phoneticFile,
                                  java.lang.String title)
                           throws java.io.IOException
Throws:
java.io.IOException

JTextComponentSpellChecker

public JTextComponentSpellChecker(SpellDictionary dict,
                                  java.lang.String title)
Method Detail

spellCheck

public int spellCheck(javax.swing.text.JTextComponent textComp)

spellingError

public void spellingError(SpellCheckEvent event)