import javax.swing.*; import com.inet.jortho.SpellChecker; public class SampleApplet extends JApplet { @Override public void start() { JEditorPane text = new JEditorPane(); text.setText( "This is a simppler textt with spelling errors." ); add( text ); SpellChecker.registerDictionaries( getCodeBase(),'' "en" ); SpellChecker.register( text ); } }