KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_ParallelPosition07 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_ParallelPosition07 */
7     public ALT_ParallelPosition07() {
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         jScrollPane1 = new javax.swing.JScrollPane JavaDoc();
19         jTextArea1 = new javax.swing.JTextArea JavaDoc();
20         jToggleButton1 = new javax.swing.JToggleButton JavaDoc();
21         jScrollPane2 = new javax.swing.JScrollPane JavaDoc();
22         jTextArea2 = new javax.swing.JTextArea JavaDoc();
23         jLabel1 = new javax.swing.JLabel JavaDoc();
24         jLabel2 = new javax.swing.JLabel JavaDoc();
25
26         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
27         jTextArea1.setColumns(20);
28         jTextArea1.setRows(5);
29         jScrollPane1.setViewportView(jTextArea1);
30
31         jToggleButton1.setText("jToggleButton1");
32
33         jTextArea2.setColumns(20);
34         jTextArea2.setRows(5);
35         jScrollPane2.setViewportView(jTextArea2);
36
37         jLabel1.setText("jLabel1");
38
39         jLabel2.setText("jLabel2");
40
41         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
42         getContentPane().setLayout(layout);
43         layout.setHorizontalGroup(
44             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
45             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
46                 .addContainerGap()
47                 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
48                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
49                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
50                     .add(org.jdesktop.layout.GroupLayout.TRAILING, jToggleButton1)
51                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
52                         .add(jLabel1)
53                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
54                         .add(jLabel2)))
55                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
56                 .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
57                 .addContainerGap(65, Short.MAX_VALUE))
58         );
59         layout.setVerticalGroup(
60             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
61             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
62                 .addContainerGap()
63                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
64                     .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
65                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
66                         .add(jToggleButton1)
67                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
68                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
69                             .add(jLabel1)
70                             .add(jLabel2)))
71                     .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
72                 .addContainerGap(225, Short.MAX_VALUE))
73         );
74         pack();
75     }// </editor-fold>//GEN-END:initComponents
76

77     /**
78      * @param args the command line arguments
79      */

80     public static void main(String JavaDoc args[]) {
81         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
82             public void run() {
83                 new ALT_ParallelPosition07().setVisible(true);
84             }
85         });
86     }
87     
88     // Variables declaration - do not modify//GEN-BEGIN:variables
89
private javax.swing.JLabel JavaDoc jLabel1;
90     private javax.swing.JLabel JavaDoc jLabel2;
91     private javax.swing.JScrollPane JavaDoc jScrollPane1;
92     private javax.swing.JScrollPane JavaDoc jScrollPane2;
93     private javax.swing.JTextArea JavaDoc jTextArea1;
94     private javax.swing.JTextArea JavaDoc jTextArea2;
95     private javax.swing.JToggleButton JavaDoc jToggleButton1;
96     // End of variables declaration//GEN-END:variables
97

98 }
99
Popular Tags