3 public class PersonalPreferences extends Dialog
5 public PersonalPreferences(spiderframe parent, String Call,
6 String Fullname, Font font) {
7 super(parent, "Personal Preferences", true);
11 Panel p1 = new Panel();
12 p1.setLayout(new GridLayout(2,2));
13 p1.add(new Label("Call: "));
14 p1.add(call = new TextField(Call, 6));
15 p1.add(new Label("Passwort: "));
16 p1.add(fullname = new TextField(Fullname));
19 Panel p2 = new Panel();
20 p2.add(new Button("OK"));
21 p2.add(new Button("Cancel"));
28 public boolean action(Event evt, Object arg) {
29 if (arg.equals("OK")) {
31 parent.setCall(call.getText());
32 parent.setFullname(fullname.getText());
34 else if (arg.equals("Cancel")) {
37 else return super.action(evt, arg);
41 private TextField call;
42 private TextField fullname;
44 private spiderframe parent;