package COM.xinit.demon.co.uk.3tier.TraderTool;
import java.awt.*;
import java.awt.event.*;
public class InfoDialog extends Dialog implements ActionListener {
protected Button button;
InfoDialog(Frame parent, String title, String message)
{
super(parent, title, false);
this.setLayout(new BorderLayout(15, 15));
Label label = new Label(message);
this.add("Center", label);
button = new Button("OK");
button.addActionListener(this);
Panel p = new Panel();
p.setLayout(new FlowLayout(FlowLayout.CENTER, 15, 15));
p.add(button);
this.add("South", p);
this.pack();
}
public
void
actionPerformed(ActionEvent ae)
{
this.setVisible(false);
this.dispose();
}
}
Last Updated