1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/componentinjection/anagram-plain/src/org/apidesign/anagram/ui/About.java Sat Jun 14 10:06:39 2008 +0200
1.3 @@ -0,0 +1,91 @@
1.4 +package org.apidesign.anagram.ui;
1.5 +
1.6 +/**
1.7 + *
1.8 + * @author Dirk Ruiz
1.9 + */
1.10 +public class About extends javax.swing.JFrame {
1.11 +
1.12 + /** Creates new form About */
1.13 + public About() {
1.14 + initComponents();
1.15 + }
1.16 +
1.17 + /** This method is called from within the constructor to
1.18 + * initialize the form.
1.19 + * WARNING: Do NOT modify this code. The content of this method is
1.20 + * always regenerated by the Form Editor.
1.21 + */
1.22 + private void initComponents() {//GEN-BEGIN:initComponents
1.23 + java.awt.GridBagConstraints gridBagConstraints;
1.24 +
1.25 + jPanel1 = new javax.swing.JPanel();
1.26 + jTextArea1 = new javax.swing.JTextArea();
1.27 + jButton1 = new javax.swing.JButton();
1.28 +
1.29 + getContentPane().setLayout(new java.awt.GridBagLayout());
1.30 +
1.31 + setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
1.32 + setTitle("About Anagrams");
1.33 + addWindowListener(new java.awt.event.WindowAdapter() {
1.34 + public void windowClosing(java.awt.event.WindowEvent evt) {
1.35 + exitForm(evt);
1.36 + }
1.37 + });
1.38 +
1.39 + jPanel1.setLayout(new java.awt.GridBagLayout());
1.40 +
1.41 + jPanel1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(11, 11, 12, 12)));
1.42 + jTextArea1.setBackground((java.awt.Color) javax.swing.UIManager.getDefaults().get("Panel.background"));
1.43 + jTextArea1.setEditable(false);
1.44 + jTextArea1.setLineWrap(true);
1.45 + jTextArea1.setText("Anagrams\n\nCopyright (c) 2003 Irritable Enterprises, Inc.");
1.46 + jTextArea1.setToolTipText("null");
1.47 + jTextArea1.setWrapStyleWord(true);
1.48 + gridBagConstraints = new java.awt.GridBagConstraints();
1.49 + gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1.50 + gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 0);
1.51 + gridBagConstraints.weightx = 1.0;
1.52 + gridBagConstraints.weighty = 1.0;
1.53 + jPanel1.add(jTextArea1, gridBagConstraints);
1.54 +
1.55 + jButton1.setText("Close");
1.56 + jButton1.addActionListener(new java.awt.event.ActionListener() {
1.57 + public void actionPerformed(java.awt.event.ActionEvent evt) {
1.58 + jButton1ActionPerformed(evt);
1.59 + }
1.60 + });
1.61 +
1.62 + gridBagConstraints = new java.awt.GridBagConstraints();
1.63 + gridBagConstraints.gridx = 0;
1.64 + gridBagConstraints.gridy = 1;
1.65 + jPanel1.add(jButton1, gridBagConstraints);
1.66 +
1.67 + gridBagConstraints = new java.awt.GridBagConstraints();
1.68 + gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1.69 + gridBagConstraints.weightx = 1.0;
1.70 + gridBagConstraints.weighty = 1.0;
1.71 + getContentPane().add(jPanel1, gridBagConstraints);
1.72 +
1.73 + pack();
1.74 + java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
1.75 + setSize(new java.awt.Dimension(309, 231));
1.76 + setLocation((screenSize.width-309)/2,(screenSize.height-231)/2);
1.77 + }//GEN-END:initComponents
1.78 +
1.79 + private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
1.80 + this.hide();
1.81 + }//GEN-LAST:event_jButton1ActionPerformed
1.82 +
1.83 + /** Exit the Application */
1.84 + private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
1.85 + //System.exit(0);
1.86 + }//GEN-LAST:event_exitForm
1.87 +
1.88 + // Variables declaration - do not modify//GEN-BEGIN:variables
1.89 + private javax.swing.JButton jButton1;
1.90 + private javax.swing.JTextArea jTextArea1;
1.91 + private javax.swing.JPanel jPanel1;
1.92 + // End of variables declaration//GEN-END:variables
1.93 +
1.94 +}