New class WindowEvents (WindowListener)