java开发的小游戏WindowListener接口所有方法1.publicvoidwindowClosed(WindowEvente){}窗口被完全关闭时调用的方法2.publicvoidwindowDeactivated(WindowEvente){}窗口失去活性时调用的方法3.publicvoidwindowActivated(WindowEvente){}窗口被完全激活时调用的方法4.publicvoidwindowIconified(WindowEvente){}窗口被最小化时调用的方法5.publicvoidwindowDeiconified(WindowEvente){}窗口被从最小化还原时