org.jfree.ui
public final class JTextObserver extends Object implements FocusListener
| Method Summary | |
|---|---|
| static void | addTextComponent(JTextComponent t)
Adds this instance as a listener for the specified text component.
|
| void | focusGained(FocusEvent e)
Selects all the text when a field gains the focus.
|
| void | focusLost(FocusEvent e)
Deselects the text when a field loses the focus.
|
| static JTextObserver | getInstance()
Returns the single instance.
|
| static void | removeTextComponent(JTextComponent t)
Removes this instance as a listener for the specified text component.
|
Parameters: t the text component.
Parameters: e the focus event.
Parameters: e the event.
Returns: The single instance.
Parameters: t the text component.