Java Tutorial/Swing Event/WindowStateListener
The WindowStateListener Interface: respond to any change in the state of a window.
Defined MethodsDescriptionwindowStateChanged(WindowEvent e)Called when the window state changes - when it is maximized or iconified, for example