java.awt.event.WindowListener (JDK 1.1)
This interface defines the methods that an object must implement to "listen" for window events on AWT components. When a WindowEvent occurs, an AWT component notifies its registered WindowListener objects by invoking one of their methods.
An easy way to implement this interface is by subclassing the WindowAdapter class.
public abstract interfaceWindowListenerextends EventListener { //Public Instance Methodspublic abstract voidwindowActivated(WindowEvente); public abstract voidwindowClosed(WindowEvente); public abstract voidwindowClosing(WindowEvente); public abstract voidwindowDeactivated(WindowEvente); public abstract voidwindowDeiconified(WindowEvente); public abstract voidwindowIconified(WindowEvente); public abstract voidwindowOpened(WindowEvente); }
Implemented By:
AWTEventMulticaster, WindowAdapter
Passed To:
AWTEventMulticaster.add(), AWTEventMulticaster.remove(), Window.addWindowListener(), Window.removeWindowListener()
Returned By:
AWTEventMulticaster.add(), AWTEventMulticaster.remove()