java.awt.event

Interface WindowFocusListener

public interface WindowFocusListener extends EventListener

This interface is for classes that wish to monitor events for window focus changes. To watch a subset of these events, use a WindowAdapter.

Since: 1.4

See Also: WindowAdapter WindowEvent

UNKNOWN: updated to 1.4

Method Summary
voidwindowGainedFocus(WindowEvent event)
This method is called when a window gains focus.
voidwindowLostFocus(WindowEvent event)
This method is called when a window loses focus.

Method Detail

windowGainedFocus

public void windowGainedFocus(WindowEvent event)
This method is called when a window gains focus.

Parameters: event the WindowEvent indicating the focus change

windowLostFocus

public void windowLostFocus(WindowEvent event)
This method is called when a window loses focus.

Parameters: event the WindowEvent indicating the focus change