KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

96 }
97
Popular Tags