Methods Summary |
---|
public boolean | handleEvent(java.awt.Event e)
if (e.id == Event.WINDOW_DESTROY) {
System.exit(0);
}
return false;
|
public void | init()
setLayout(new BorderLayout());
ArcCanvas c = new ArcCanvas();
add("Center", c);
add("South", controls = new ArcControls(c));
|
public static void | main(java.lang.String[] args)
Frame f = new Frame("ArcTest");
ArcTest arcTest = new ArcTest();
arcTest.init();
arcTest.start();
f.add("Center", arcTest);
f.resize(300, 300);
f.show();
|
public void | start()
controls.enable();
|
public void | stop()
controls.disable();
|