Java WindowListener Interface

The Java WindowListener is notified whenever you change the state of window. It is notified against WindowEvent. The WindowListener interface is found in java.awt.event package. It has three methods.

Methods of WindowListener interface

The signature of 7 methods found in WindowListener interface are given below:

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);


Java WindowListener Example

Flash Soon


Output:


Advertisement

© Sapster 2017