// // FILE : CloseableFrame.java // AUTHOR : Eugene Wallingford // DATE : 10/08/03 // // BASED ON : Stuart Reges' original Swing version (08/27/99) // import java.awt.*; import java.awt.event.*; public class CloseableFrame extends Frame { public CloseableFrame() { super(); addWindowListener( new WindowAdapter() { public void windowClosing( WindowEvent e ) { System.exit(0); } }); } }