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