3 public class beam extends Dialog
5 public beam(spiderframe parent, String Prefix, Font font) {
6 super(parent, "Call/Prefix/Other", true);
10 Panel p1 = new Panel();
11 p1.setLayout(new GridLayout(2,2));
12 p1.add(new Label("Enter Your Choice (Call/Prefix/Other) "));
13 p1.add(prefix = new TextField(Prefix, 6));
16 Panel p2 = new Panel();
17 p2.add(new Button("OK"));
18 p2.add(new Button("Cancel"));
25 public boolean action(Event evt, Object arg) {
26 if (arg.equals("OK")) {
28 parent.setPrefix(prefix.getText());
30 else if (arg.equals("Cancel")) {
33 else return super.action(evt, arg);
37 private TextField prefix;
39 private spiderframe parent;