KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.netbeans.modules.form.layoutdesign;
2
3 public class ALT_Bug66919 extends javax.swing.JFrame JavaDoc {
4     
5     /** Creates new form Perform */
6     public ALT_Bug66919() {
7         initComponents();
8     }
9     
10     /** This method is called from within the constructor to
11      * initialize the form.
12      * WARNING: Do NOT modify this code. The content of this method is
13      * always regenerated by the Form Editor.
14      */

15     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
16
private void initComponents() {
17         add = new javax.swing.JButton JavaDoc();
18         jPanel1 = new javax.swing.JPanel JavaDoc();
19         save = new javax.swing.JButton JavaDoc();
20         delete = new javax.swing.JButton JavaDoc();
21         jPanel2 = new javax.swing.JPanel JavaDoc();
22
23         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
24         add.setText("New Record");
25
26         jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Perform Venue"));
27         org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
28         jPanel1.setLayout(jPanel1Layout);
29         jPanel1Layout.setHorizontalGroup(
30             jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
31             .add(0, 274, Short.MAX_VALUE)
32         );
33         jPanel1Layout.setVerticalGroup(
34             jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
35             .add(0, 157, Short.MAX_VALUE)
36         );
37
38         save.setText("Save");
39
40         delete.setText("Delete");
41
42         jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Perform Detail"));
43         org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
44         jPanel2.setLayout(jPanel2Layout);
45         jPanel2Layout.setHorizontalGroup(
46             jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
47             .add(0, 336, Short.MAX_VALUE)
48         );
49         jPanel2Layout.setVerticalGroup(
50             jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
51             .add(0, 138, Short.MAX_VALUE)
52         );
53
54         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
55         getContentPane().setLayout(layout);
56         layout.setHorizontalGroup(
57             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
58             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
59                 .addContainerGap()
60                 .add(add)
61                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
62                 .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
63                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 6, Short.MAX_VALUE)
64                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
65                     .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
66                         .add(save, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 114, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
67                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 116, Short.MAX_VALUE)
68                         .add(delete, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 137, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
69                     .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
70                 .addContainerGap())
71         );
72         layout.setVerticalGroup(
73             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
74             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
75                 .addContainerGap()
76                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
77                     .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
78                     .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
79                     .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
80                         .add(162, 162, 162)
81                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
82                             .add(delete)
83                             .add(save)))
84                     .add(add))
85                 .addContainerGap(285, Short.MAX_VALUE))
86         );
87         pack();
88     }// </editor-fold>//GEN-END:initComponents
89

90     /**
91      * @param args the command line arguments
92      */

93     public static void main(String JavaDoc args[]) {
94         java.awt.EventQueue.invokeLater(new Runnable JavaDoc() {
95             public void run() {
96                 new ALT_Bug66919().setVisible(true);
97             }
98         });
99     }
100     
101     // Variables declaration - do not modify//GEN-BEGIN:variables
102
private javax.swing.JButton JavaDoc add;
103     private javax.swing.JButton JavaDoc delete;
104     private javax.swing.JPanel JavaDoc jPanel1;
105     private javax.swing.JPanel JavaDoc jPanel2;
106     private javax.swing.JButton JavaDoc save;
107     // End of variables declaration//GEN-END:variables
108

109 }
110
111
112
Popular Tags