The WindowAdapter class implements the methods of WindowListener with empty functions. It may be easier for you to extend WindowAdapter, overriding only those methods you are interested in, than to implement WindowListener and provide the empty functions yourself.
public abstract class java.awt.event.WindowAdapter extends java.lang.Object implements java.awt.event.WindowListener { // Instance Methods public void windowActivated (WindowEvent e); public void windowClosed (WindowEvent e); public void windowClosing (WindowEvent e); public void windowDeactivated (WindowEvent e); public void windowDeiconified (WindowEvent e); public void windowIconified (WindowEvent e); public void windowOpened (WindowEvent e); }
The event that has occurred.
Does nothing. Override this function to be notified when a window is activated.
The event that has occurred.
Does nothing. Override this function to be notified when a window is closed.
The event that has occurred.
Does nothing. Override this function to be notified when a window is in the process of closing.
The event that has occurred.
Does nothing. Override this function to be notified when a window is deactivated.
The event that has occurred.
Does nothing. Override this function to be notified when an iconified window is restored.
The event that has occurred.
Does nothing. Override this function to be notified when a window is iconified (minimized).
The event that has occurred.
Does nothing. Override this function to be notified when a window is opened.
WindowEvent, WindowListener
This HTML Help has been published using the chm2web software. |