Dialogue: WindowEvents 3
In the case of WindowListener, however you don’t!
A class called WindowAdapter has been defined in the awt which implements WindowListener.
class WindowAdapter implements WindowListener
WindowAdapter implements all 7 WindowListener methods as
To use WindowAdapter to close a window, you simply define a new subclass which overrides the windowCllosing method.