/* * @(#)Lecture11.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.lecture11; import java.awt.*; import java.awt.event.*; class Lecture11 extends Frame { public Lecture11() { addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { dispose(); System.exit(0); } }); } public static void main(String args[]) { System.out.println("Starting Lecture11..."); Lecture11 mainFrame = new Lecture11(); mainFrame.setSize(400, 400); mainFrame.setTitle("Lecture11"); mainFrame.setVisible(true); } }