KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_Resizing06 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_Resizing06 */
7     public ALT_Resizing06() {
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         jTextField1 = new javax.swing.JTextField JavaDoc();
20         jLabel2 = new javax.swing.JLabel JavaDoc();
21
22         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
23         jLabel1.setText("jLabel1");
24
25         jTextField1.setText("jTextField1");
26
27         jLabel2.setText("jLabel2");
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()
35                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
36                     .add(jLabel1)
37                     .add(jLabel2)
38                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
39                         .add(10, 10, 10)
40                         .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
41                 .addContainerGap(274, Short.MAX_VALUE))
42         );
43         layout.setVerticalGroup(
44             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
45             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
46                 .addContainerGap()
47                 .add(jLabel1)
48                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
49                 .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
50                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
51                 .add(jLabel2)
52                 .addContainerGap(229, Short.MAX_VALUE))
53         );
54         pack();
55     }// </editor-fold>//GEN-END:initComponents
56

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

60     public static void main(String JavaDoc args[]) {
61         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
62             public void run() {
63                 new ALT_Resizing06().setVisible(true);
64             }
65         });
66     }
67     
68     // Variables declaration - do not modify//GEN-BEGIN:variables
69
private javax.swing.JLabel JavaDoc jLabel1;
70     private javax.swing.JLabel JavaDoc jLabel2;
71     private javax.swing.JTextField JavaDoc jTextField1;
72     // End of variables declaration//GEN-END:variables
73

74 }
75
Popular Tags