FileDocCategorySizeDatePackage
Interface.javaAPI DocExample923Tue Feb 12 13:32:04 GMT 2002myprojects.Interface

Interface.java

/*
 * @(#)Interface.java 1.0 01/11/23
 *
 * 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.Interface;

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

class Interface extends Frame {
	Triangle t=new Triangle(100,100);
	
	public Interface() {
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				dispose();
				System.exit(0);
			}
		});
		
		
		add(t,"Center");

	}

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