3 public class InfoDialog extends Dialog {
4 protected Button button;
5 protected MultiLineLabel label;
8 public InfoDialog(Frame parent, String title, String message) {
9 super(parent, title, false);
11 this.setLayout(new BorderLayout(15,15));
12 label = new MultiLineLabel(message, 20, 20, 1);
13 this.add("Center", label);
15 button = new Button("OK");
16 Panel p = new Panel();
17 p.setLayout(new FlowLayout(FlowLayout.CENTER, 15, 15));
25 public boolean action(Event e, Object arg) {
26 if (e.target == button) {
34 public boolean gotFocus(Event e, Object Arg) {
35 button.requestFocus();