package siprp; import javax.swing.text.JTextComponent; public class SpellChecker { private static SpellChecker instance = null; // private final EvoSpellChecker spellChecker; private SpellChecker() { // this.spellChecker = new EvoSpellChecker( Dictionary.PT_PT ); } public static SpellChecker getInstance() { if( instance == null ) { instance = new SpellChecker(); } return instance; } public void attachSpellCheckToComponent( JTextComponent fieldTextMedida ) { // TODO Auto-generated method stub // spellChecker.attachSpellCheckToComponent( fieldTextMedida ) } }