Package com.inet.jortho

This package implements the spell checker JOrtho.

See: Description

Package com.inet.jortho Description

This package implements the spell checker JOrtho. With JOrtho is it possible very simple to check the orthography from any text in a JTextComponent. The SpellChecker class is the major class of the Spell Checker JOrtho (Java Orthography Checker). In the most cases this is the only class that you need to add spelling feature to your application. If you want support for a user dictionary that a user can add its own words then you must implements a UserDictionaryProvider. This UserDictionaryProvider must be register at first:

SpellChecker.setUserDictionaryProvider( new MyUserDictionaryProvider() );

After it you need to register your dictionaries one times. In standalone application if your dictionaries are in the working directory then this can look like:

SpellChecker.registerDictionaries( new URL("file", null, ""), "en,de", "de" );

and in a applet like:

SpellChecker.registerDictionaries( getCodeBase(), "en,de", "en" );

After this you can register your text component that should have all spell checker feature (Highlighter. context menu, spelling dialog). This look like:

JTextPane text = new JTextPane();
SpellChecker.register( text );

Copyright © 2005 - 2013 i-net software. All Rights Reserved.