KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_ParallelPosition09 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_ParallelPosition09 */
7     public ALT_ParallelPosition09() {
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         jButton1 = new javax.swing.JButton JavaDoc();
20         jButton2 = new javax.swing.JButton JavaDoc();
21
22         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
23         jToggleButton1.setText("jToggleButton1jToggleButton1");
24
25         jButton1.setText("jButton1");
26
27         jButton2.setText("jButton2");
28
29         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
30         getContentPane().setLayout(layout);
31         layout.setHorizontalGroup(
32             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
33             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
34                 .addContainerGap(211, Short.MAX_VALUE)
35                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
36                     .add(jToggleButton1)
37                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
38                         .add(10, 10, 10)
39                         .add(jButton2)
40                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
41                         .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
42                 .addContainerGap())
43         );
44         layout.setVerticalGroup(
45             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
46             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
47                 .addContainerGap()
48                 .add(jToggleButton1)
49                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
50                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
51                     .add(jButton2)
52                     .add(jButton1))
53                 .addContainerGap(237, Short.MAX_VALUE))
54         );
55         pack();
56     }// </editor-fold>//GEN-END:initComponents
57

58     /**
59      * @param args the command line arguments
60      */

61     public static void main(String JavaDoc args[]) {
62         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
63             public void run() {
64                 new ALT_ParallelPosition09().setVisible(true);
65             }
66         });
67     }
68     
69     // Variables declaration - do not modify//GEN-BEGIN:variables
70
private javax.swing.JButton JavaDoc jButton1;
71     private javax.swing.JButton JavaDoc jButton2;
72     private javax.swing.JToggleButton JavaDoc jToggleButton1;
73     // End of variables declaration//GEN-END:variables
74

75 }
76
Popular Tags