/* * @(#)Lecture12.java 1.0 04/03/04 * * You can modify the template of this file in the * directory ..\JCreator\Templates\Template_1\Project_Name.java * * You can also create your own project template by making a new * folder in the directory ..\JCreator\Template\. Use the other * templates as examples. * */ package myprojects.lecture12; import java.awt.*; import java.awt.event.*; class Lecture12 extends Frame { public Lecture12() { addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { dispose(); System.exit(0); } }); } public static void main(String args[]) { System.out.println("Starting Lecture12..."); Lecture12 mainFrame = new Lecture12(); mainFrame.setSize(400, 400); mainFrame.setTitle("Lecture12"); mainFrame.setVisible(true); } }