FileDocCategorySizeDatePackage
DrawShape.javaAPI DocExample1306Sun Nov 25 21:00:48 GMT 2001myprojects.drawshape

DrawShape

public class DrawShape extends JFrame

Fields Summary
Circle
c
Triangle
t
Constructors Summary
public DrawShape()

	  
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				dispose();
				System.exit(0);
			}
		});
		// Add the canvases to the layout
		Container contents = getContentPane();
		c.setSize(200,200);
		t.setSize(200,200);
		contents.add(c,"North");
		contents.add(t,"South");
		pack();
		
	
Methods Summary
public static voidmain(java.lang.String[] args)

		System.out.println("Starting DrawShape...");
		DrawShape mainFrame = new DrawShape();
		mainFrame.setSize(400, 500);
		mainFrame.setTitle("DrawShape");
		mainFrame.setVisible(true);