KickJava   Java API By Example, From Geeks To Geeks.

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


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

65     /**
66      * @param args the command line arguments
67      */

68     public static void main(String JavaDoc args[]) {
69         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
70             public void run() {
71                 new ALT_Resizing09().setVisible(true);
72             }
73         });
74     }
75     
76     // Variables declaration - do not modify//GEN-BEGIN:variables
77
private javax.swing.JLabel JavaDoc jLabel1;
78     private javax.swing.JLabel JavaDoc jLabel2;
79     private javax.swing.JTextField JavaDoc jTextField1;
80     private javax.swing.JTextField JavaDoc jTextField2;
81     // End of variables declaration//GEN-END:variables
82

83 }
84
Popular Tags