FileDocCategorySizeDatePackage
RadioCheckNew.javaAPI DocExample4439Mon Apr 06 18:10:22 BST 1998None

RadioCheckNew

public class RadioCheckNew extends Applet

Fields Summary
TextField
t
Checkbox[]
cb
CheckboxGroup
g
Checkbox
cb4
Checkbox
cb5
Checkbox
cb6
Constructors Summary
Methods Summary
public voidinit()

     
    t.setEditable(false);
    add(t); 
    ILCheck il = new ILCheck();
    for(int i = 0; i < cb.length; i++) {
      cb[i].addItemListener(il);
      add(cb[i]);
    }
    cb4.addItemListener(new IL4());
    cb5.addItemListener(new IL5());
    cb6.addItemListener(new IL6());
    add(cb4); add(cb5); add(cb6); 
  
public static voidmain(java.lang.String[] args)

    RadioCheckNew applet = new RadioCheckNew();
    Frame aFrame = new Frame("RadioCheckNew");
    aFrame.addWindowListener(
      new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
          System.exit(0);
        }
      });
    aFrame.add(applet, BorderLayout.CENTER);
    aFrame.setSize(300,200);
    applet.init();
    applet.start();
    aFrame.setVisible(true);