FileDocCategorySizeDatePackage
GoodIdea.javaAPI DocExample3533Mon Apr 06 18:10:22 BST 1998None

GoodIdea

public class GoodIdea extends Frame

Fields Summary
Button
b1
Button
b2
Constructors Summary
public GoodIdea()

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

    Frame f = new GoodIdea();
    f.addWindowListener(
      new WindowAdapter() {
        public void windowClosing(WindowEvent e){
          System.out.println("Window Closing");
          System.exit(0);
        }
      });
    f.setSize(300,200);
    f.setVisible(true);