KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.netbeans.modules.form.layoutdesign;
3
4 public class ALT_BorderPositions01 extends javax.swing.JFrame JavaDoc {
5     
6     /** Creates new form ALT_BorderPositions01 */
7     public ALT_BorderPositions01() {
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         jPanel1 = new javax.swing.JPanel JavaDoc();
19
20         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
21         org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
22         jPanel1.setLayout(jPanel1Layout);
23         jPanel1Layout.setHorizontalGroup(
24             jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
25             .add(0, 107, Short.MAX_VALUE)
26         );
27         jPanel1Layout.setVerticalGroup(
28             jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
29             .add(0, 81, Short.MAX_VALUE)
30         );
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(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
37                 .addContainerGap(283, Short.MAX_VALUE)
38                 .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
39                 .addContainerGap())
40         );
41         layout.setVerticalGroup(
42             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
43             .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
44                 .addContainerGap(208, Short.MAX_VALUE)
45                 .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
46                 .addContainerGap())
47         );
48         pack();
49     }// </editor-fold>//GEN-END:initComponents
50

51     /**
52      * @param args the command line arguments
53      */

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

66 }
67
Popular Tags