KickJava   Java API By Example, From Geeks To Geeks.

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


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

42     /**
43      * @param args the command line arguments
44      */

45     public static void main(String JavaDoc args[]) {
46         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
47             public void run() {
48                 new ALT_DefaultSize01().setVisible(true);
49             }
50         });
51     }
52     
53     // Variables declaration - do not modify//GEN-BEGIN:variables
54
private javax.swing.JButton JavaDoc jButton1;
55     // End of variables declaration//GEN-END:variables
56

57 }
58
Popular Tags