FileDocCategorySizeDatePackage
Button2.javaAPI DocExample2960Mon Apr 06 18:10:22 BST 1998None

Button2

public class Button2 extends Applet

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

    if(evt.target.equals(b1))
      getAppletContext().showStatus("Button 1");
    else if(evt.target.equals(b2))
      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);