import java.awt.*;


public class MyApplication {

  public static void main (String[] args) {

     OKButton b1 = new OKButton ();
     OKButton b2 = new OKButton(new MyActionListener());

     Frame f = new Frame("Some sample");
     f.setLayout(new FlowLayout());
     f.setLocation(100,100);
     f.add (b1);
     f.add (b2);

     f.pack();
     f.show();
 }
}
