1
package org.jboss.remoting.samples.chat.client;
5
import java.awt.event.*;
10
* <p>Copyright: Copyright (c) 2003</p>
12
* @author not attributable
16
public class ShutDownDialog extends JDialog {
17
JPanel panel1 = new JPanel();
18
JLabel jLabel1 = new JLabel();
19
JLabel jLabel2 = new JLabel();
20
JButton OKButton = new JButton();
21
GridBagLayout gridBagLayout1 = new GridBagLayout();
23
public ShutDownDialog(Frame frame, String title, boolean modal) {
24
super(frame, title, modal);
34
public ShutDownDialog() {
35
this(null, "", false);
37
private void jbInit() throws Exception {
38
panel1.setLayout(gridBagLayout1);
39
jLabel1.setFont(new java.awt.Font("Dialog", 1, 12));
40
jLabel1.setText("Chat system is shutting down.");
41
jLabel2.setFont(new java.awt.Font("Dialog", 1, 12));
42
jLabel2.setText("Please try again later.");
43
OKButton.setFont(new java.awt.Font("Dialog", 1, 14));
44
OKButton.setText("OK");
45
OKButton.addActionListener(new ShutDownDialog_OKButton_actionAdapter(this));
46
getContentPane().add(panel1);
47
panel1.add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
48
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(71, 109, 0, 84), 37, 15));
49
panel1.add(jLabel2, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
50
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(12, 134, 0, 100), 43, 3));
51
panel1.add(OKButton, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
52
,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(46, 156, 96, 171), 18, -4));
55
void OKButton_actionPerformed(ActionEvent e) {
60
class ShutDownDialog_OKButton_actionAdapter implements java.awt.event.ActionListener {
61
ShutDownDialog adaptee;
63
ShutDownDialog_OKButton_actionAdapter(ShutDownDialog adaptee) {
64
this.adaptee = adaptee;
66
public void actionPerformed(ActionEvent e) {
67
adaptee.OKButton_actionPerformed(e);
b'\\ No newline at end of file'