java.awt.event
Interface WindowFocusListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AWTEventMulticaster, BasicToolBarUI.FrameListener, JMenu.WinListener, WindowAdapter

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

Method Summary
 void windowGainedFocus(WindowEvent event)
          This method is called when a window gains focus.
 void windowLostFocus(WindowEvent event)
          This method is called when a window loses focus.
 

Method Detail

windowGainedFocus

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

Parameters:
event - the WindowEvent indicating the focus change

windowLostFocus

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

Parameters:
event - the WindowEvent indicating the focus change