UNB/ CS/ David Bremner/ teaching/ java/ EmptyFrame.java
public class EmptyFrame extends JFrame
{  public EmptyFrame()
   {  final int DEFAULT_FRAME_WIDTH = 300;
      final int DEFAULT_FRAME_HEIGHT = 300;
      setSize(DEFAULT_FRAME_WIDTH, DEFAULT_FRAME_HEIGHT);

      WindowCloser listener = new WindowCloser();
      addWindowListener(listener);
   }
   
   private class WindowCloser extends WindowAdapter
   {  public void windowClosing(WindowEvent event)
      {  System.exit(0);
      }
   }
}