class WordSearcher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.text.JTextComponent |
comp |
protected javax.swing.text.Highlighter.HighlightPainter |
painter |
| Constructor and Description |
|---|
WordSearcher(javax.swing.text.JTextComponent comp)
Create a new searcher for a given JtextComponent
|
| Modifier and Type | Method and Description |
|---|---|
int |
search(java.lang.String word)
Search for a word and return the offset of the first occurrence.
|
protected javax.swing.text.JTextComponent comp
protected javax.swing.text.Highlighter.HighlightPainter painter