FileDocCategorySizeDatePackage
RadioButton1.javaAPI DocExample3161Mon Apr 06 18:10:22 BST 1998None

RadioButton1

public class RadioButton1 extends Applet

Fields Summary
TextField
t
CheckboxGroup
g
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))
      t.setText("Radio button 1");
    else if(evt.target.equals(cb2))
      t.setText("Radio button 2");
    else if(evt.target.equals(cb3))
      t.setText("Radio button 3");
    else 
      return super.action(evt, arg);
    return true;
  
public voidinit()

     
    t.setEditable(false);
    add(t); 
    add(cb1); add(cb2); add(cb3);