jtulach@576
|
1 |
package org.apidesign.demo.anagramwithspringandlookup;
|
jtulach@576
|
2 |
|
jtulach@576
|
3 |
/**
|
jtulach@576
|
4 |
*
|
jtulach@576
|
5 |
* @author Dirk Ruiz
|
jtulach@576
|
6 |
*/
|
jtulach@576
|
7 |
public class About extends javax.swing.JFrame {
|
jtulach@576
|
8 |
|
jtulach@576
|
9 |
/** Creates new form About */
|
jtulach@576
|
10 |
public About() {
|
jtulach@576
|
11 |
initComponents();
|
jtulach@576
|
12 |
}
|
jtulach@576
|
13 |
|
jtulach@576
|
14 |
/** This method is called from within the constructor to
|
jtulach@576
|
15 |
* initialize the form.
|
jtulach@576
|
16 |
* WARNING: Do NOT modify this code. The content of this method is
|
jtulach@576
|
17 |
* always regenerated by the Form Editor.
|
jtulach@576
|
18 |
*/
|
jtulach@576
|
19 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
jtulach@576
|
20 |
private void initComponents() {
|
jtulach@576
|
21 |
java.awt.GridBagConstraints gridBagConstraints;
|
jtulach@576
|
22 |
|
jtulach@576
|
23 |
jPanel1 = new javax.swing.JPanel();
|
jtulach@576
|
24 |
jTextArea1 = new javax.swing.JTextArea();
|
jtulach@576
|
25 |
jButton1 = new javax.swing.JButton();
|
jtulach@576
|
26 |
|
jtulach@576
|
27 |
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
jtulach@576
|
28 |
setTitle("About Anagrams");
|
jtulach@576
|
29 |
addWindowListener(new java.awt.event.WindowAdapter() {
|
jtulach@576
|
30 |
public void windowClosing(java.awt.event.WindowEvent evt) {
|
jtulach@576
|
31 |
exitForm(evt);
|
jtulach@576
|
32 |
}
|
jtulach@576
|
33 |
});
|
jtulach@576
|
34 |
getContentPane().setLayout(new java.awt.GridBagLayout());
|
jtulach@576
|
35 |
|
jtulach@576
|
36 |
jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(11, 11, 12, 12));
|
jtulach@576
|
37 |
jPanel1.setLayout(new java.awt.GridBagLayout());
|
jtulach@576
|
38 |
|
jtulach@576
|
39 |
jTextArea1.setBackground(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
|
jtulach@576
|
40 |
jTextArea1.setEditable(false);
|
jtulach@576
|
41 |
jTextArea1.setLineWrap(true);
|
jtulach@576
|
42 |
jTextArea1.setText("Anagrams\n\nCopyright (c) 2003 Irritable Enterprises, Inc.");
|
jtulach@576
|
43 |
jTextArea1.setWrapStyleWord(true);
|
jtulach@576
|
44 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
jtulach@576
|
45 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
jtulach@576
|
46 |
gridBagConstraints.weightx = 1.0;
|
jtulach@576
|
47 |
gridBagConstraints.weighty = 1.0;
|
jtulach@576
|
48 |
gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 0);
|
jtulach@576
|
49 |
jPanel1.add(jTextArea1, gridBagConstraints);
|
jtulach@576
|
50 |
|
jtulach@576
|
51 |
jButton1.setText("Close");
|
jtulach@576
|
52 |
jButton1.addActionListener(new java.awt.event.ActionListener() {
|
jtulach@576
|
53 |
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
jtulach@576
|
54 |
jButton1ActionPerformed(evt);
|
jtulach@576
|
55 |
}
|
jtulach@576
|
56 |
});
|
jtulach@576
|
57 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
jtulach@576
|
58 |
gridBagConstraints.gridx = 0;
|
jtulach@576
|
59 |
gridBagConstraints.gridy = 1;
|
jtulach@576
|
60 |
jPanel1.add(jButton1, gridBagConstraints);
|
jtulach@576
|
61 |
|
jtulach@576
|
62 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
jtulach@576
|
63 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
jtulach@576
|
64 |
gridBagConstraints.weightx = 1.0;
|
jtulach@576
|
65 |
gridBagConstraints.weighty = 1.0;
|
jtulach@576
|
66 |
getContentPane().add(jPanel1, gridBagConstraints);
|
jtulach@576
|
67 |
|
jtulach@576
|
68 |
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
|
jtulach@576
|
69 |
setBounds((screenSize.width-309)/2, (screenSize.height-231)/2, 309, 231);
|
jtulach@576
|
70 |
}// </editor-fold>//GEN-END:initComponents
|
jtulach@576
|
71 |
|
jtulach@576
|
72 |
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
|
jtulach@576
|
73 |
this.hide();
|
jtulach@576
|
74 |
}//GEN-LAST:event_jButton1ActionPerformed
|
jtulach@576
|
75 |
|
jtulach@576
|
76 |
/** Exit the Application */
|
jtulach@576
|
77 |
private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
|
jtulach@576
|
78 |
//System.exit(0);
|
jtulach@576
|
79 |
}//GEN-LAST:event_exitForm
|
jtulach@576
|
80 |
|
jtulach@576
|
81 |
// Variables declaration - do not modify//GEN-BEGIN:variables
|
jtulach@576
|
82 |
private javax.swing.JButton jButton1;
|
jtulach@576
|
83 |
private javax.swing.JPanel jPanel1;
|
jtulach@576
|
84 |
private javax.swing.JTextArea jTextArea1;
|
jtulach@576
|
85 |
// End of variables declaration//GEN-END:variables
|
jtulach@576
|
86 |
|
jtulach@576
|
87 |
}
|