Assertion: applet's code | /r/CapableOf | terminate the program
Facets:
Source sentences:
text: Applet myApplet = new hello4(); //Add the applet object to the Frame object myFrame.add(myApplet); //Make the whole thing visible myFrame.setVisible(true); //This code will terminate the program when the // user clicks the close button on the Frame myFrame.addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0);}}); }//end main } //End hello4 class.