The blanks are filled in, below.
import java.awt.*; import java.awt.event.*; import javax.swing.*; class myFrame extends JFrame { public void paint ( Graphics g ) { g.drawString("Click the close button", 10, 50 ); } } class WindowQuitter extends WindowAdapter { public void windowClosing( WindowEvent e ) { System.exit( 0 ); } } public class GUItester { public static void main ( String[] args ) { myFrame frm = new myFrame(); WindowQuitter wquit = new WindowQuitter(); frm.addWindowListener( wquit ); frm.setSize( 150, 100 ); frm.setVisible( true ); } }