import java.awt.*;

public class MyApplication {

  public static void main (String[] args) {
     Frame f = new Frame();
     f.setLayout (new FlowLayout());
     f.setLocation(100,100);

     f.add (new Button("This is button 1"));
     f.add (new Button("This is button 2"));
     f.add (new TextField("This is a textfield"));
     f.pack();
     f.show();
 }
}
