KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * ALT_Issue66431_3.java
3  *
4  * Created on November 8, 2005, 2:23 PM
5  */

6
7 package org.netbeans.modules.form.layoutdesign;
8
9 /**
10  *
11  * @author tp105349
12  */

13 public class ALT_Bug66431_3 extends javax.swing.JFrame JavaDoc {
14     
15     /** Creates new form ALT_Issue66431_3 */
16     public ALT_Bug66431_3() {
17         initComponents();
18     }
19     
20     /** This method is called from within the constructor to
21      * initialize the form.
22      * WARNING: Do NOT modify this code. The content of this method is
23      * always regenerated by the Form Editor.
24      */

25     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
26
private void initComponents() {
27         jButton1 = new javax.swing.JButton JavaDoc();
28         jButton2 = new javax.swing.JButton JavaDoc();
29         jScrollPane1 = new javax.swing.JScrollPane JavaDoc();
30         jTextArea1 = new javax.swing.JTextArea JavaDoc();
31
32         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
33         jButton1.setText("jButton1");
34
35         jButton2.setText("jButton2");
36
37         jTextArea1.setColumns(20);
38         jTextArea1.setRows(5);
39         jScrollPane1.setViewportView(jTextArea1);
40
41         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
42         getContentPane().setLayout(layout);
43         layout.setHorizontalGroup(
44             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
45             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
46                 .addContainerGap()
47                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
48                     .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
49                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
50                         .add(jButton1)
51                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
52                         .add(jButton2)))
53                 .addContainerGap())
54         );
55         layout.setVerticalGroup(
56             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
57             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
58                 .addContainerGap()
59                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
60                     .add(jButton1)
61                     .add(jButton2))
62                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
63                 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 196, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
64                 .addContainerGap(91, Short.MAX_VALUE))
65         );
66         pack();
67     }// </editor-fold>//GEN-END:initComponents
68

69     /**
70      * @param args the command line arguments
71      */

72     public static void main(String JavaDoc args[]) {
73         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
74             public void run() {
75                 new ALT_Bug66431_3().setVisible(true);
76             }
77         });
78     }
79     
80     // Variables declaration - do not modify//GEN-BEGIN:variables
81
private javax.swing.JButton JavaDoc jButton1;
82     private javax.swing.JButton JavaDoc jButton2;
83     private javax.swing.JScrollPane JavaDoc jScrollPane1;
84     private javax.swing.JTextArea JavaDoc jTextArea1;
85     // End of variables declaration//GEN-END:variables
86

87 }
88
Popular Tags