FileDocCategorySizeDatePackage
ShapeMover.javaAPI DocExample6918Tue Dec 12 19:00:00 GMT 2000None

ShapeMover

public class ShapeMover extends Applet

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


		setLayout(new BorderLayout());
		add(new SMCanvas());

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

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