public class HighlightUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
addHighlight(JTextField label,
MouseEvent mouseEvent1,
MouseEvent mouseEvent2)
Highlight the given label from the first mouse event to the second
Returns true if the highlight was successful, false otherwise.
|
static boolean |
isInHighlight(MouseEvent e,
JTextField label,
Highlighter h)
Returns true if the given mouse event occurred within a highlight h on label.
|
public static boolean addHighlight(JTextField label, MouseEvent mouseEvent1, MouseEvent mouseEvent2)
public static boolean isInHighlight(MouseEvent e, JTextField label, Highlighter h)