KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_Indent01 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_Indent01 */
7     public ALT_Indent01() {
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         jLabel2 = new javax.swing.JLabel JavaDoc();
20         jLabel3 = new javax.swing.JLabel JavaDoc();
21         jLabel4 = new javax.swing.JLabel JavaDoc();
22         jLabel5 = new javax.swing.JLabel JavaDoc();
23
24         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
25         jLabel1.setText("jLabel1");
26
27         jLabel2.setText("jLabel2");
28
29         jLabel3.setText("jLabel3aaa");
30
31         jLabel4.setText("jLabel4");
32
33         jLabel5.setText("jLabel5");
34
35         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
36         getContentPane().setLayout(layout);
37         layout.setHorizontalGroup(
38             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
39             .add(layout.createSequentialGroup()
40                 .addContainerGap()
41                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
42                     .add(layout.createSequentialGroup()
43                         .add(jLabel1)
44                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
45                         .add(jLabel2))
46                     .add(layout.createSequentialGroup()
47                         .add(10, 10, 10)
48                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
49                             .add(layout.createSequentialGroup()
50                                 .add(10, 10, 10)
51                                 .add(jLabel5))
52                             .add(layout.createSequentialGroup()
53                                 .add(jLabel3)
54                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
55                                 .add(jLabel4)))))
56                 .addContainerGap(288, Short.MAX_VALUE))
57         );
58         layout.setVerticalGroup(
59             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
60             .add(layout.createSequentialGroup()
61                 .addContainerGap()
62                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
63                     .add(jLabel1)
64                     .add(jLabel2))
65                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
66                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
67                     .add(jLabel3)
68                     .add(jLabel4))
69                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
70                 .add(jLabel5)
71                 .addContainerGap(235, 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_Indent01().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.JLabel JavaDoc jLabel3;
91     private javax.swing.JLabel JavaDoc jLabel4;
92     private javax.swing.JLabel JavaDoc jLabel5;
93     // End of variables declaration//GEN-END:variables
94

95 }
96
Popular Tags