JOrtho Sample Code

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 );
    }
}
 

© Copyright 1996 - 2024, i-net software; All Rights Reserved.