KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > form > layoutdesign > ALT_Resizing02


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_Resizing02 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_Resizing02 */
7     public ALT_Resizing02() {
8         initComponents();
9     }
10     
11     /** This method is called from within the constructor to
12      * initialize the form.
13      * WARNING: Do NOT modify this code. The content of this method is
14      * always regenerated by the Form Editor.
15      */

16     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
17
private void initComponents() {
18         jLabel1 = new javax.swing.JLabel JavaDoc();
19         jInternalFrame1 = new javax.swing.JInternalFrame JavaDoc();
20         jScrollPane1 = new javax.swing.JScrollPane JavaDoc();
21         jTextArea1 = new javax.swing.JTextArea JavaDoc();
22         jButton1 = new javax.swing.JButton JavaDoc();
23         jButton2 = new javax.swing.JButton JavaDoc();
24
25         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
26         jLabel1.setText("jLabel1");
27
28         jInternalFrame1.setVisible(true);
29         org.jdesktop.layout.GroupLayout jInternalFrame1Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame1.getContentPane());
30         jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
31         jInternalFrame1Layout.setHorizontalGroup(
32             jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
33             .add(0, 249, Short.MAX_VALUE)
34         );
35         jInternalFrame1Layout.setVerticalGroup(
36             jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
37             .add(0, 186, Short.MAX_VALUE)
38         );
39
40         jTextArea1.setColumns(20);
41         jTextArea1.setRows(5);
42         jScrollPane1.setViewportView(jTextArea1);
43
44         jButton1.setText("jButton1");
45
46         jButton2.setText("jButton2");
47
48         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
49         getContentPane().setLayout(layout);
50         layout.setHorizontalGroup(
51             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
52             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
53                 .addContainerGap()
54                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
55                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
56                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
57                             .add(jLabel1)
58                             .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
59                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 21, Short.MAX_VALUE)
60                         .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
61                     .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
62                         .add(jButton2)
63                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
64                         .add(jButton1)))
65                 .addContainerGap())
66         );
67         layout.setVerticalGroup(
68             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
69             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
70                 .addContainerGap()
71                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
72                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
73                         .add(jLabel1)
74                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
75                         .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
76                     .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
77                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 23, Short.MAX_VALUE)
78                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
79                     .add(jButton1)
80                     .add(jButton2))
81                 .addContainerGap())
82         );
83         pack();
84     }// </editor-fold>//GEN-END:initComponents
85

86     /**
87      * @param args the command line arguments
88      */

89     public static void main(String JavaDoc args[]) {
90         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
91             public void run() {
92                 new ALT_Resizing02().setVisible(true);
93             }
94         });
95     }
96     
97     // Variables declaration - do not modify//GEN-BEGIN:variables
98
private javax.swing.JButton JavaDoc jButton1;
99     private javax.swing.JButton JavaDoc jButton2;
100     private javax.swing.JInternalFrame JavaDoc jInternalFrame1;
101     private javax.swing.JLabel JavaDoc jLabel1;
102     private javax.swing.JScrollPane JavaDoc jScrollPane1;
103     private javax.swing.JTextArea JavaDoc jTextArea1;
104     // End of variables declaration//GEN-END:variables
105

106 }
107
Popular Tags