Listing 15 instantiates a listener object that terminates the program
Listing 15. The class named WProc1. |
---|
class WProc1 extends WindowAdapter{ public void windowClosing(WindowEvent e){ System.exit(0);//terminate the program }//end windowClosing() }//end class WProc1 |
File: ek.htm | [Next] | [Prev] |