KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_Indent04 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_Indent04 */
7     public ALT_Indent04() {
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
23         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
24         jLabel1.setText("jLabel1");
25
26         jLabel2.setText("jLabel2");
27
28         jLabel3.setText("jLabel3");
29
30         jLabel4.setText("jLabel4");
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(layout.createSequentialGroup()
37                 .addContainerGap()
38                 .add(jLabel1)
39                 .add(34, 34, 34)
40                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
41                     .add(layout.createSequentialGroup()
42                         .add(10, 10, 10)
43                         .add(jLabel4)
44                         .add(53, 53, 53)
45                         .add(jLabel2))
46                     .add(jLabel3))
47                 .addContainerGap(191, Short.MAX_VALUE))
48         );
49         layout.setVerticalGroup(
50             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
51             .add(layout.createSequentialGroup()
52                 .add(53, 53, 53)
53                 .add(jLabel3)
54                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
55                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
56                     .add(jLabel1)
57                     .add(jLabel2)
58                     .add(jLabel4))
59                 .addContainerGap(213, Short.MAX_VALUE))
60         );
61         pack();
62     }// </editor-fold>//GEN-END:initComponents
63

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

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

82 }
83
Popular Tags