FileDocCategorySizeDatePackage
Button2NewB.javaAPI DocExample3570Mon Apr 06 18:10:22 BST 1998None

Button2NewB

public class Button2NewB extends Applet

Fields Summary
Button
b1
Button
b2
TextField
t
Constructors Summary
Methods Summary
public voidinit()

     
    b1.addActionListener(new B1());
    b2.addActionListener(new B2());
    add(b1);
    add(b2);
    add(t);
  
public static voidmain(java.lang.String[] args)

    Button2NewB applet = new Button2NewB();
    Frame aFrame = new Frame("Button2NewB");
    aFrame.addWindowListener(new WL());
    aFrame.add(applet, BorderLayout.CENTER);
    aFrame.setSize(300,200);
    applet.init();
    applet.start();
    aFrame.setVisible(true);