KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_ParallelPosition15 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_ParallelPosition15 */
7     public ALT_ParallelPosition15() {
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         jToggleButton1 = new javax.swing.JToggleButton JavaDoc();
19         jLabel1 = new javax.swing.JLabel JavaDoc();
20         jButton1 = new javax.swing.JButton JavaDoc();
21         jButton2 = new javax.swing.JButton JavaDoc();
22
23         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
24         jToggleButton1.setText("jToggleButton1jToggleButton1");
25
26         jLabel1.setText("jLabel1");
27
28         jButton1.setText("jButton1");
29
30         jButton2.setText("jButton2");
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(org.jdesktop.layout.GroupLayout.TRAILING, jToggleButton1)
40                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
41                         .add(jLabel1)
42                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
43                         .add(jButton1)))
44                 .add(40, 40, 40)
45                 .add(jButton2)
46                 .addContainerGap(96, Short.MAX_VALUE))
47         );
48         layout.setVerticalGroup(
49             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
50             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
51                 .addContainerGap()
52                 .add(jToggleButton1)
53                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
54                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
55                     .add(jLabel1)
56                     .add(jButton2)
57                     .add(jButton1))
58                 .addContainerGap(237, Short.MAX_VALUE))
59         );
60         pack();
61     }// </editor-fold>//GEN-END:initComponents
62

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

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

81 }
82
Popular Tags