/** * Name: Stuart Hansen * * Purpose: * This project illustrates how to open * and close a windowing application in Java * * Date: January 26, 2003 */ import javax.swing.*; public class SimpleWindow extends JFrame { /** * Constructor for objects of class SimpleWindow */ public SimpleWindow() { setTitle("This application does nothing"); setSize(500, 500); setDefaultCloseOperation(EXIT_ON_CLOSE); setVisible(true); } public static void main (String [] args) { new SimpleWindow(); } }