java.awt.event

Interface FocusListener

public interface FocusListener extends EventListener

This interface is for classes that wish to be notified of changes of keyboard focus for a component. To watch a subset of these events, use a FocusAdapter.

Since: 1.1

See Also: FocusAdapter FocusEvent

UNKNOWN: updated to 1.4

Method Summary
voidfocusGained(FocusEvent event)
This method is called when a component gains the keyboard focus.
voidfocusLost(FocusEvent event)
This method is invoked when a component loses the keyboard focus.

Method Detail

focusGained

public void focusGained(FocusEvent event)
This method is called when a component gains the keyboard focus.

Parameters: event the FocusEvent indicating that focus was gained

focusLost

public void focusLost(FocusEvent event)
This method is invoked when a component loses the keyboard focus.

Parameters: event the FocusEvent indicating that focus was lost