KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_Move01 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_Move01 */
7     public ALT_Move01() {
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         jTextField2 = new javax.swing.JTextField JavaDoc();
22
23         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
24         jLabel1.setText("jLabel1");
25
26         jTextField1.setText("jTextField1");
27
28         jLabel2.setText("jLabel2");
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                 .add(32, 32, 32)
38                 .add(jLabel2)
39                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 255, Short.MAX_VALUE)
40                 .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
41                 .add(20, 20, 20))
42             .add(layout.createSequentialGroup()
43                 .addContainerGap()
44                 .add(jLabel1)
45                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
46                 .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
47                 .addContainerGap(293, 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(jTextField1, 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(jTextField2, 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_Move01().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