|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.gui.core.text.JTextComponentHelper
public class JTextComponentHelper
A helper class for JTextComponents, e.g. highlighting of patterns in the text.
The source was adapted from here.
Constructor Summary | |
---|---|
JTextComponentHelper(javax.swing.text.JTextComponent textComponent)
initializes the helper |
Method Summary | |
---|---|
static void |
highlight(javax.swing.text.JTextComponent textComp,
java.lang.String pattern)
Creates highlights around all occurrences of pattern in textComp |
void |
highlight(java.lang.String pattern)
Creates highlights around all occurrences of pattern |
void |
removeHighlights()
Removes only our private highlights |
static void |
removeHighlights(javax.swing.text.JTextComponent textComp)
Removes only our private highlights |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JTextComponentHelper(javax.swing.text.JTextComponent textComponent)
Method Detail |
---|
public void highlight(java.lang.String pattern)
public static void highlight(javax.swing.text.JTextComponent textComp, java.lang.String pattern)
public void removeHighlights()
public static void removeHighlights(javax.swing.text.JTextComponent textComp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |