KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_ParallelPosition03 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_ParallelPosition03 */
7     public ALT_ParallelPosition03() {
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         jScrollPane1 = new javax.swing.JScrollPane JavaDoc();
20         jTextArea1 = new javax.swing.JTextArea JavaDoc();
21         jButton1 = new javax.swing.JButton JavaDoc();
22
23         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
24         jToggleButton1.setText("jToggleButton1");
25
26         jTextArea1.setColumns(20);
27         jTextArea1.setRows(5);
28         jScrollPane1.setViewportView(jTextArea1);
29
30         jButton1.setText("jButton1");
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.TRAILING, false)
39                     .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
40                     .add(jToggleButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
41                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
42                 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
43                 .addContainerGap(175, Short.MAX_VALUE))
44         );
45         layout.setVerticalGroup(
46             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
47             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
48                 .addContainerGap()
49                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
50                     .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
51                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
52                         .add(jToggleButton1)
53                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
54                         .add(jButton1)))
55                 .addContainerGap(225, Short.MAX_VALUE))
56         );
57         pack();
58     }// </editor-fold>//GEN-END:initComponents
59

60     /**
61      * @param args the command line arguments
62      */

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

78 }
79
Popular Tags