Package com.inet.jortho

Examples of com.inet.jortho.FileUserDictionary


    add(text);
    setSize(200, 160);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    setLocationRelativeTo(null);
    // Create user dictionary in the current working directory of your application
    SpellChecker.setUserDictionaryProvider(new FileUserDictionary());
    // Load the configuration from the file dictionaries.cnf and
    // use the current locale or the first language as default
    SpellChecker.registerDictionaries(null, null);
    // enable the spell checking on the text component with all features
    SpellChecker.register(text);
View Full Code Here


    });
    if (dictionaryList.length == 0) {
      return;
    }
    final ResourceController resourceController = ResourceController.getResourceController();
    SpellChecker.setUserDictionaryProvider(new FileUserDictionary(resourceController.getFreeplaneUserDirectory()));
    final StringBuilder availableLocales = new StringBuilder();
    for (int i = 0; i < dictionaryList.length; i++) {
      final String language = dictionaryList[i].substring("dictionary_".length(), "dictionary_".length() + 2);
      availableLocales.append(language);
      availableLocales.append(",");
View Full Code Here

TOP

Related Classes of com.inet.jortho.FileUserDictionary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.