Methods Summary |
---|
public void | actionPerformed(java.awt.event.ActionEvent e)
String arg = e.getActionCommand();
if (arg.equals("Demo")) {
demoButton.setLabel("loading");
if (demoFrame == null) {
demoFrame = createDemoFrame(this);
showDemo(demoFrame);
}
demoButton.setLabel("Demo");
}
|
public abstract java.awt.Frame | createDemoFrame(DemoApplet applet)
|
public void | demoClosed()
demoFrame = null;
|
public void | init()
setBackground(Color.white);
demoButton = new Button("Demo");
demoButton.addActionListener(this);
demoButton.setBackground(Color.yellow);
add( demoButton );
|
public static void | showDemo(java.awt.Frame demoFrame)
demoFrame.setSize(550,500);
demoFrame.show();
|