WindowAdapter Class in Java

0
126
Spread the love
  • 24
  • 23
  • 28
  • 35
  •  
  •  
  •  
  • 10
  •  
  •  
    120
    Shares

WindowAdapter Class in Java:

WindowAdapter is an implementation of the WindowListener interface. It contains empty bodies for each of the methods of WindowListener. When we do not need to implement all the methods of WindowListener interface, Subclass -WindowAdapter helps us there.

The structure of WindowAdapter is given as:


public abstract class WindowAdapter extends Object implements WindowListener {
// Constructor: 
public WindowAdapter();
//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); 
}
 
Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 24
  • 23
  • 28
  • 35
  •  
  •  
  •  
  • 10
  •  
  •  
    120
    Shares

LEAVE A REPLY

Please enter your comment!
Please enter your name here