WindowListener

Name

WindowListener

[Graphic: Figure from the text]

Description

Objects that implement the WindowListener interface can receive WindowEvent objects. Listeners must first register themselves with objects that produce events. When events occur, they are then automatically propagated to all registered listeners.

Interface Definition

public abstract interface java.awt.event.WindowListener extends java.util.EventListener {
 // Instance Methods public abstract void windowActivated (WindowEvent e);
public abstract void windowClosed (WindowEvent e);
public abstract void windowClosing (WindowEvent e);
public abstract void windowDeactivated (WindowEvent e);
public abstract void windowDeiconified (WindowEvent e);
public abstract void windowIconified (WindowEvent e);
public abstract void windowOpened (WindowEvent e);
}

Interface Methods

windowActivated

public abstract void windowActivated (WindowEvent e)

windowClosed

public abstract void windowClosed (WindowEvent e)

windowClosing

public abstract void windowClosing (WindowEvent e)

windowDeactivated

public abstract void windowDeactivated (WindowEvent e)

windowDeiconified

public abstract void windowDeiconified (WindowEvent e)

windowIconified

public abstract void windowIconified (WindowEvent e)

windowOpened

public abstract void windowOpened (WindowEvent e)

See Also

AWTEventMulticaster, EventListener, Window, WindowAdapter, WindowEvent