FileDocCategorySizeDatePackage
DrawTest.javaAPI DocSun JDK 1.4.2 Example7419Thu May 12 00:35:29 BST 2005None

DrawTest

public class DrawTest extends Applet

Fields Summary
DrawPanel
panel
DrawControls
controls
Constructors Summary
Methods Summary
public voiddestroy()

        remove(panel);
        remove(controls);
    
public java.lang.StringgetAppletInfo()

        return "A simple drawing program.";
    
public voidinit()

	setLayout(new BorderLayout());
	panel = new DrawPanel();
        controls = new DrawControls(panel);
	add("Center", panel);
	add("South",controls);
    
public static voidmain(java.lang.String[] args)

	Frame f = new Frame("DrawTest");
	DrawTest drawTest = new DrawTest();
	drawTest.init();
	drawTest.start();

	f.add("Center", drawTest);
	f.setSize(300, 300);
	f.show();