FileDocCategorySizeDatePackage
DynamicEvents.javaAPI DocExample4236Mon Apr 06 18:10:22 BST 1998None

DynamicEvents

public class DynamicEvents extends Frame

Fields Summary
Vector
v
int
i
Button
b1
Button
b2
Constructors Summary
public DynamicEvents()

    
    setLayout(new FlowLayout());
    b1.addActionListener(new B());
    b1.addActionListener(new B1());
    b2.addActionListener(new B());
    b2.addActionListener(new B2());
    add(b1);
    add(b2);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    Frame f = new DynamicEvents();
    f.addWindowListener(
      new WindowAdapter() {
        public void windowClosing(WindowEvent e){
          System.exit(0);
        }
      });
    f.setSize(300,200);
    f.show();