FileDocCategorySizeDatePackage
Counter2i.javaAPI DocExample3993Mon Apr 06 18:10:22 BST 1998None

Counter2i

public class Counter2i extends Applet

Fields Summary
private SeparateSubTask
sp
private TextField
t
private Button
onOff
private Button
start
Constructors Summary
Methods Summary
public voidinit()

     
    add(t);
    start.addActionListener(new StartL());
    add(start);
    onOff.addActionListener(new OnOffL());
    add(onOff);
  
public static voidmain(java.lang.String[] args)

    Counter2i applet = new Counter2i();
    Frame aFrame = new Frame("Counter2i");
    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);