KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_Resizing07 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_Resizing07 */
7     public ALT_Resizing07() {
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
21         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
22         jLabel1.setText("jLabel1");
23
24         jTextField1.setText("jTextField1");
25
26         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
27         getContentPane().setLayout(layout);
28         layout.setHorizontalGroup(
29             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
30             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
31                 .addContainerGap()
32                 .add(jLabel1)
33                 .add(45, 45, 45)
34                 .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 291, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
35                 .addContainerGap(20, Short.MAX_VALUE))
36         );
37         layout.setVerticalGroup(
38             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
39             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
40                 .addContainerGap()
41                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
42                     .add(jLabel1)
43                     .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
44                 .addContainerGap(269, Short.MAX_VALUE))
45         );
46         pack();
47     }// </editor-fold>//GEN-END:initComponents
48

49     /**
50      * @param args the command line arguments
51      */

52     public static void main(String JavaDoc args[]) {
53         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
54             public void run() {
55                 new ALT_Resizing07().setVisible(true);
56             }
57         });
58     }
59     
60     // Variables declaration - do not modify//GEN-BEGIN:variables
61
private javax.swing.JLabel JavaDoc jLabel1;
62     private javax.swing.JTextField JavaDoc jTextField1;
63     // End of variables declaration//GEN-END:variables
64

65 }
66
Popular Tags