FileDocCategorySizeDatePackage
CheckBox1.javaAPI DocExample3215Mon Apr 06 18:10:22 BST 1998None

CheckBox1

public class CheckBox1 extends Applet

Fields Summary
TextArea
t
Checkbox
cb1
Checkbox
cb2
Checkbox
cb3
Constructors Summary
Methods Summary
public booleanaction(java.awt.Event evt, java.lang.Object arg)

    if(evt.target.equals(cb1))
      trace("1", cb1.getState());
    else if(evt.target.equals(cb2))
      trace("2", cb2.getState());
    else if(evt.target.equals(cb3))
      trace("3", cb3.getState());
    else 
      return super.action(evt, arg);
    return true;
  
public voidinit()

     
    add(t); add(cb1); add(cb2); add(cb3);
  
voidtrace(java.lang.String b, boolean state)

    if(state)
      t.appendText("Box " + b + " Set\n");
    else
      t.appendText("Box " + b + " Cleared\n");