You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SIPRP/trunk/SIPRPSoft/src/siprp/SIPRPSpellChecker.java

36 lines
700 B

package siprp;
import javax.swing.text.JTextComponent;
import com.evolute.modules.spellchecker.EvoSpellChecker;
import com.evolute.modules.spellchecker.EvoSpellChecker.Dictionary;
public class SIPRPSpellChecker
{
private static SIPRPSpellChecker instance = null;
private final EvoSpellChecker spellChecker;
private SIPRPSpellChecker()
{
this.spellChecker = new EvoSpellChecker( Dictionary.PT_PT );
}
public static SIPRPSpellChecker getInstance()
{
if( instance == null )
{
instance = new SIPRPSpellChecker();
}
return instance;
}
public void attachSpellCheckToComponent( JTextComponent fieldText )
{
spellChecker.attachSpellCheckToComponent( fieldText );
}
}