Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.event

Interface WindowListener

java.lang.Object
|
+--java.util.EventListener
   |
   +--java.awt.event.WindowListener

All Implemented Interfaces:

EventListener


public interface WindowListener

implements EventListener

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

Since:Author:See Also:

Method Summary

voidwindowActivated(java.awt.event.WindowEvent event)

This method is called when a window is activated.
voidwindowClosed(java.awt.event.WindowEvent event)

This method is called when the window is closed.
voidwindowClosing(java.awt.event.WindowEvent event)

This method is called when the user calls the system menu close function, giving the program a chance to cancel the close.
voidwindowDeactivated(java.awt.event.WindowEvent event)

This method is called when the window is deactivated.
voidwindowDeiconified(java.awt.event.WindowEvent event)

This method is called when the window is deiconified.
voidwindowIconified(java.awt.event.WindowEvent event)

This method is called when the window is iconified.
voidwindowOpened(java.awt.event.WindowEvent event)

This method is called when the window is made visible.

Method Details

windowActivated

public void windowActivated(java.awt.event.WindowEvent event)

This method is called when a window is activated. Only Frames and Dialogs can be active, and the active window always contains the component with focus.

Parameters:


windowClosed

public void windowClosed(java.awt.event.WindowEvent event)

This method is called when the window is closed.

Parameters:


windowClosing

public void windowClosing(java.awt.event.WindowEvent event)

This method is called when the user calls the system menu close function, giving the program a chance to cancel the close.

Parameters:


windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent event)

This method is called when the window is deactivated.

Parameters:


windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent event)

This method is called when the window is deiconified.

Parameters:


windowIconified

public void windowIconified(java.awt.event.WindowEvent event)

This method is called when the window is iconified.

Parameters:

See Also:


windowOpened

public void windowOpened(java.awt.event.WindowEvent event)

This method is called when the window is made visible.

Parameters: