3 import java.awt.event.*;
7 public class HTMLDialog extends JDialog implements ActionListener {
9 public HTMLDialog(String title, String message) {
12 ij.util.Java2.setSystemLookAndFeel();
13 Container container = getContentPane();
14 container.setLayout(
new BorderLayout());
15 if (message==null) message =
"";
16 JLabel label =
new JLabel(message);
17 JPanel panel =
new JPanel();
18 panel.setLayout(
new FlowLayout(FlowLayout.CENTER, 15, 15));
20 container.add(panel,
"Center");
21 JButton button =
new JButton(
"OK");
22 button.addActionListener(
this);
25 container.add(panel,
"South");
26 setForeground(Color.black);
32 public void actionPerformed(ActionEvent e) {