FileDocCategorySizeDatePackage
BufferedShapeMover.javaAPI DocExample7829Wed Apr 19 11:17:56 BST 2000None

BufferedShapeMover

public class BufferedShapeMover extends Applet

Fields Summary
protected static Label
label
Constructors Summary
Methods Summary
public voidinit()

		//Initialize the layout.
		setLayout(new BorderLayout());
		add(new BSMCanvas());
		label = new Label("Drag rectangle around within the area");
		add("South", label);
	
public static voidmain(java.lang.String[] s)

        Frame f = new Frame("BufferedShapeMover");
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {System.exit(0);}
        });
	Applet applet = new BufferedShapeMover();
	f.add("Center", applet);
	applet.init();
	f.pack();
        f.setSize(new Dimension(550,250));
        f.show();