Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Interface java.awt.event.WindowListener

Implementing Classes:
AWTEventMulticaster, WindowAdapter

public interface WindowListener
extends EventListener
The listener interface for receiving window events. The class that is interested in processing a window event either implements this interface (and all the methods it contains) or extends the abstract WindowAdapter class (overriding only the methods of interest). The listener object created from that class is then registered with a Window using the winodw's addWindowListener method. When the window's status changes by virtue of being opened, closed, activated or deactivated, iconified or deiconified, the relevant method in the listener object s invoked, and the WindowEvent is passed to it.

See Also:
WindowAdapter, WindowEvent, Tutorial: Writing a Window Listener, Reference: The Java Class Libraries (update file)

Method Summary
void  windowActivated(WindowEvent e)
Invoked when a window is activated.
void  windowClosed(WindowEvent e)
Invoked when a window has been closed.
void  windowClosing(WindowEvent e)
Invoked when a window is in the process of being closed.
void  windowDeactivated(WindowEvent e)
Invoked when a window is de-activated.
void  windowDeiconified(WindowEvent e)
Invoked when a window is de-iconified.
void  windowIconified(WindowEvent e)
Invoked when a window is iconified.
void  windowOpened(WindowEvent e)
Invoked when a window has been opened.
 

Method Detail

windowOpened

public void windowOpened(WindowEvent e)
Invoked when a window has been opened.

windowClosing

public void windowClosing(WindowEvent e)
Invoked when a window is in the process of being closed. The close operation can be overridden at this point.

windowClosed

public void windowClosed(WindowEvent e)
Invoked when a window has been closed.

windowIconified

public void windowIconified(WindowEvent e)
Invoked when a window is iconified.

windowDeiconified

public void windowDeiconified(WindowEvent e)
Invoked when a window is de-iconified.

windowActivated

public void windowActivated(WindowEvent e)
Invoked when a window is activated.

windowDeactivated

public void windowDeactivated(WindowEvent e)
Invoked when a window is de-activated.

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.