/* UITest
   My stupid Java UI test
*/
import java.applet.*;
import java.awt.*;

public class UITest extends Applet {
  private TextField txt1;
  private Button bt1,bt2;
  private Label lbl1, lbl1;
  private Dialog dlg1;
  public UITest () {
    super();
  }
  public void paint(Graphics g) {
  }
  public void start () {
  }
  public void init() {
    txt1=new TextField(10);
    bt1=new Button("&Set");
    lbl1=new Label("What do I know, I'm just a label!");
    add(txt1); add(bt1); add(lbl1);
    //setLayout(new FlowLayout());
  }
  public boolean action (Event evt, Object what) {
    if (evt.target==bt1) {
      lbl1.setText(txt1.getText());
    }
    return true;
  }
}
