public class SelectAllOnFocusGainedDecorator extends java.awt.event.FocusAdapter
JTextComponent receives focus.| Constructor and Description |
|---|
SelectAllOnFocusGainedDecorator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decorate(javax.swing.text.JTextComponent tc)
Add the listener to a given text component.
|
void |
focusGained(java.awt.event.FocusEvent e) |
public SelectAllOnFocusGainedDecorator()
public static void decorate(javax.swing.text.JTextComponent tc)
tc - The text component.public void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerfocusGained in class java.awt.event.FocusAdapter