KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * ALT_Inserting01.java
3  *
4  * Created on November 1, 2005, 12:14 PM
5  */

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

13 public class ALT_Inserting01 extends javax.swing.JFrame JavaDoc {
14     
15     /** Creates new form ALT_Inserting01 */
16     public ALT_Inserting01() {
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         jLabel1 = new javax.swing.JLabel JavaDoc();
28         jLabel2 = new javax.swing.JLabel JavaDoc();
29         jLabel3 = new javax.swing.JLabel JavaDoc();
30         jTextField1 = new javax.swing.JTextField JavaDoc();
31         jTextField2 = new javax.swing.JTextField JavaDoc();
32         jTextField3 = new javax.swing.JTextField JavaDoc();
33         jButton1 = new javax.swing.JButton JavaDoc();
34         jButton2 = new javax.swing.JButton JavaDoc();
35         jButton3 = new javax.swing.JButton JavaDoc();
36         jLabel4 = new javax.swing.JLabel JavaDoc();
37
38         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
39         jLabel1.setText("jLabel1jLabel1jLabel1");
40
41         jLabel2.setText("jLabel2jLabel2");
42
43         jLabel3.setText("jLabel3");
44
45         jTextField1.setText("jTextField1");
46
47         jTextField2.setText("jTextField2");
48
49         jTextField3.setText("jTextField3");
50
51         jButton1.setText("jButton1");
52
53         jButton2.setText("jButton2");
54
55         jButton3.setText("jButton3");
56
57         jLabel4.setText("jLabel4");
58
59         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
60         getContentPane().setLayout(layout);
61         layout.setHorizontalGroup(
62             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
63             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
64                 .addContainerGap()
65                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
66                     .add(jLabel4)
67                     .add(jLabel1)
68                     .add(jLabel2)
69                     .add(jLabel3))
70                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
71                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
72                     .add(jButton2)
73                     .add(jButton3))
74                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
75                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
76                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
77                         .add(jButton1)
78                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
79                         .add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE))
80                     .add(jTextField2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
81                     .add(jTextField3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE))
82                 .add(32, 32, 32))
83         );
84         layout.setVerticalGroup(
85             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
86             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
87                 .addContainerGap()
88                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
89                     .add(jLabel1)
90                     .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
91                     .add(jButton1))
92                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
93                 .add(jLabel4)
94                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
95                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
96                     .add(jLabel2)
97                     .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
98                     .add(jButton2))
99                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
100                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
101                     .add(jLabel3)
102                     .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
103                     .add(jButton3))
104                 .addContainerGap(188, Short.MAX_VALUE))
105         );
106         pack();
107     }// </editor-fold>//GEN-END:initComponents
108

109     /**
110      * @param args the command line arguments
111      */

112     public static void main(String JavaDoc args[]) {
113         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
114             public void run() {
115                 new ALT_Inserting01().setVisible(true);
116             }
117         });
118     }
119     
120     // Variables declaration - do not modify//GEN-BEGIN:variables
121
private javax.swing.JButton JavaDoc jButton1;
122     private javax.swing.JButton JavaDoc jButton2;
123     private javax.swing.JButton JavaDoc jButton3;
124     private javax.swing.JLabel JavaDoc jLabel1;
125     private javax.swing.JLabel JavaDoc jLabel2;
126     private javax.swing.JLabel JavaDoc jLabel3;
127     private javax.swing.JLabel JavaDoc jLabel4;
128     private javax.swing.JTextField JavaDoc jTextField1;
129     private javax.swing.JTextField JavaDoc jTextField2;
130     private javax.swing.JTextField JavaDoc jTextField3;
131     // End of variables declaration//GEN-END:variables
132

133 }
134
Popular Tags