KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_ParallelPosition01 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_ParallelPosition01 */
7     public ALT_ParallelPosition01() {
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
23         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
24         jLabel1.setText("jLabel1");
25
26         jTextField1.setText("jTextField1");
27
28         jLabel2.setText("jLabel2");
29
30         jTextField2.setText("jTextField2");
31
32         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
33         getContentPane().setLayout(layout);
34         layout.setHorizontalGroup(
35             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
36             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
37                 .addContainerGap()
38                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
39                     .add(jLabel1)
40                     .add(jLabel2)
41                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
42                         .add(10, 10, 10)
43                         .add(jTextField1, 0, 101, Short.MAX_VALUE))
44                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
45                         .add(10, 10, 10)
46                         .add(jTextField2)))
47                 .addContainerGap(279, Short.MAX_VALUE))
48         );
49         layout.setVerticalGroup(
50             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
51             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
52                 .addContainerGap()
53                 .add(jLabel1)
54                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
55                 .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
56                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
57                 .add(jLabel2)
58                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
59                 .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
60                 .addContainerGap(203, Short.MAX_VALUE))
61         );
62         pack();
63     }// </editor-fold>//GEN-END:initComponents
64

65     /**
66      * @param args the command line arguments
67      */

68     public static void main(String JavaDoc args[]) {
69         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
70             public void run() {
71                 new ALT_ParallelPosition01().setVisible(true);
72             }
73         });
74     }
75     
76     // Variables declaration - do not modify//GEN-BEGIN:variables
77
private javax.swing.JLabel JavaDoc jLabel1;
78     private javax.swing.JLabel JavaDoc jLabel2;
79     private javax.swing.JTextField JavaDoc jTextField1;
80     private javax.swing.JTextField JavaDoc jTextField2;
81     // End of variables declaration//GEN-END:variables
82

83 }
84
Popular Tags