正在加载图片...
Handling Window Events class ProgramTerminator implements Windowlistener public void windowClosing( WindowEvent event System. exit(0) public void windowActivated( WindowEvent event ) t public void windowClosed WindowEvent event ) public void window Deactivated( WindowEvent event public void window Deiconified( WindowEvent event public void windowIconified( WindowEvent event ) I public void windowopened WindowEvent event I C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 13-9© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 13 - 9 Handling Window Events class ProgramTerminator implements WindowListener { public void windowClosing( WindowEvent event ) { System.exit(0); } public void windowActivated ( WindowEvent event ) { } public void windowClosed ( WindowEvent event ) { } public void windowDeactivated( WindowEvent event ) { } public void windowDeiconified( WindowEvent event ) { } public void windowIconified ( WindowEvent event ) { } public void windowOpened ( WindowEvent event ) { } }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有