java.awt.event
public interface FocusListener extends EventListener
FocusAdapter
,
FocusEvent
Modifier and Type | Method and Description |
---|---|
void |
focusGained(FocusEvent event)
This method is called when a component gains the keyboard focus.
|
void |
focusLost(FocusEvent event)
This method is invoked when a component loses the keyboard focus.
|
void focusGained(FocusEvent event)
event
- the FocusEvent
indicating that focus was gainedvoid focusLost(FocusEvent event)
event
- the FocusEvent
indicating that focus was lost