FileDocCategorySizeDatePackage
DoctorExample.javaAPI DocExample889Tue Feb 12 13:32:04 GMT 2002myprojects.doctorexample

DoctorExample.java

/*
 * @(#)DoctorExample.java 1.0 01/12/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.doctorexample;

import java.awt.*;
import java.awt.event.*;

class DoctorExample extends Frame {
	
	public DoctorExample() {
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				dispose();
				System.exit(0);
			}
		});
	}

	public static void main(String args[]) {
		System.out.println("Starting DoctorExample...");
		DoctorExample mainFrame = new DoctorExample();
		mainFrame.setSize(400, 400);
		mainFrame.setTitle("DoctorExample");
		mainFrame.setVisible(true);
	}
}