FileDocCategorySizeDatePackage
Button3.javaAPI DocExample2969Mon Apr 06 18:10:22 BST 1998None

Button3

public class Button3 extends Applet

Fields Summary
Button
b1
Button
b2
Constructors Summary
Methods Summary
public booleanaction(java.awt.Event evt, java.lang.Object arg)

    if(arg.equals("Button 1"))
      getAppletContext().showStatus("Button 1");
    else if(arg.equals("Button 2"))
      getAppletContext().showStatus("Button 2");
    // Let the base class handle it:
    else 
      return super.action(evt, arg);
    return true; // We've handled it here
  
public voidinit()

     
    add(b1);
    add(b2);