|
@@ -0,0 +1,91 @@
|
|
1
|
+/*
|
|
2
|
+ * FatalErrorDialog.java
|
|
3
|
+ *
|
|
4
|
+ * Created on 01 March 2007, 03:50
|
|
5
|
+ */
|
|
6
|
+
|
|
7
|
+package uk.org.ownage.dmdirc.ui;
|
|
8
|
+
|
|
9
|
+/**
|
|
10
|
+ *
|
|
11
|
+ * @author chris
|
|
12
|
+ */
|
|
13
|
+public class FatalErrorDialog extends javax.swing.JDialog {
|
|
14
|
+
|
|
15
|
+ /** Creates new form FatalErrorDialog */
|
|
16
|
+ public FatalErrorDialog(java.awt.Frame parent, boolean modal) {
|
|
17
|
+ super(parent, modal);
|
|
18
|
+ initComponents();
|
|
19
|
+ }
|
|
20
|
+
|
|
21
|
+ /** This method is called from within the constructor to
|
|
22
|
+ * initialize the form.
|
|
23
|
+ * WARNING: Do NOT modify this code. The content of this method is
|
|
24
|
+ * always regenerated by the Form Editor.
|
|
25
|
+ */
|
|
26
|
+ // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
|
|
27
|
+ private void initComponents() {
|
|
28
|
+ jLabel1 = new javax.swing.JLabel();
|
|
29
|
+ jLabel2 = new javax.swing.JLabel();
|
|
30
|
+ jLabel3 = new javax.swing.JLabel();
|
|
31
|
+ jScrollPane1 = new javax.swing.JScrollPane();
|
|
32
|
+ jTextArea1 = new javax.swing.JTextArea();
|
|
33
|
+ jButton1 = new javax.swing.JButton();
|
|
34
|
+
|
|
35
|
+ setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
|
36
|
+ jLabel1.setFont(new java.awt.Font("Dialog", 1, 18));
|
|
37
|
+ jLabel1.setText("We're sorry...");
|
|
38
|
+
|
|
39
|
+ jLabel2.setText("DMDirc has encountered a fatal error and cannot continue.");
|
|
40
|
+
|
|
41
|
+ jLabel3.setText("Error details:");
|
|
42
|
+
|
|
43
|
+ jTextArea1.setColumns(20);
|
|
44
|
+ jTextArea1.setEditable(false);
|
|
45
|
+ jTextArea1.setRows(5);
|
|
46
|
+ jScrollPane1.setViewportView(jTextArea1);
|
|
47
|
+
|
|
48
|
+ jButton1.setText("OK");
|
|
49
|
+
|
|
50
|
+ org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
|
|
51
|
+ getContentPane().setLayout(layout);
|
|
52
|
+ layout.setHorizontalGroup(
|
|
53
|
+ layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
|
54
|
+ .add(layout.createSequentialGroup()
|
|
55
|
+ .addContainerGap()
|
|
56
|
+ .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
|
57
|
+ .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 443, Short.MAX_VALUE)
|
|
58
|
+ .add(jLabel1)
|
|
59
|
+ .add(org.jdesktop.layout.GroupLayout.TRAILING, jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
|
60
|
+ .add(jLabel3)
|
|
61
|
+ .add(jLabel2))
|
|
62
|
+ .addContainerGap())
|
|
63
|
+ );
|
|
64
|
+ layout.setVerticalGroup(
|
|
65
|
+ layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
|
66
|
+ .add(layout.createSequentialGroup()
|
|
67
|
+ .addContainerGap()
|
|
68
|
+ .add(jLabel1)
|
|
69
|
+ .add(23, 23, 23)
|
|
70
|
+ .add(jLabel2)
|
|
71
|
+ .add(21, 21, 21)
|
|
72
|
+ .add(jLabel3)
|
|
73
|
+ .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
|
74
|
+ .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 246, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
|
75
|
+ .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 9, Short.MAX_VALUE)
|
|
76
|
+ .add(jButton1)
|
|
77
|
+ .addContainerGap())
|
|
78
|
+ );
|
|
79
|
+ pack();
|
|
80
|
+ }// </editor-fold>//GEN-END:initComponents
|
|
81
|
+
|
|
82
|
+ // Variables declaration - do not modify//GEN-BEGIN:variables
|
|
83
|
+ private javax.swing.JButton jButton1;
|
|
84
|
+ private javax.swing.JLabel jLabel1;
|
|
85
|
+ private javax.swing.JLabel jLabel2;
|
|
86
|
+ private javax.swing.JLabel jLabel3;
|
|
87
|
+ private javax.swing.JScrollPane jScrollPane1;
|
|
88
|
+ private javax.swing.JTextArea jTextArea1;
|
|
89
|
+ // End of variables declaration//GEN-END:variables
|
|
90
|
+
|
|
91
|
+}
|