final Tokenizer tok = new Tokenizer(jText, dic, loc, i, j, options);
String word;
final Highlighter highlighter = jText.getHighlighter();
while ((word = tok.nextInvalidWord()) != null) {
final int wordOffset = tok.getWordOffset();
highlighter.addHighlight(wordOffset, wordOffset + word.length(), painter);
}
}
catch (final BadLocationException e) {
e.printStackTrace();
}