KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > performance > JFrame20kB


1 /*
2  *
3  * The contents of this file are subject to the terms of the Common Development
4  * and Distribution License (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
8  * or http://www.netbeans.org/cddl.txt.
9  *
10  * When distributing Covered Code, include this CDDL Header Notice in each file
11  * and include the License file at http://www.netbeans.org/cddl.txt.
12  * If applicable, add the following below the CDDL Header, with the fields
13  * enclosed by brackets [] replaced by your own identifying information:
14  * "Portions Copyrighted [year] [name of copyright owner]"
15  *
16  * The Original Software is NetBeans. The Initial Developer of the Original
17  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
18  * Microsystems, Inc. All Rights Reserved.
19  */

20
21 package org.netbeans.test.performance;
22
23 public class JFrame20kB extends javax.swing.JFrame JavaDoc {
24
25     /** Creates new form JFrame20kB */
26     public JFrame20kB() {
27         initComponents();
28     }
29
30     /** This method is called from within the constructor to
31      * initialize the form.
32      * WARNING: Do NOT modify this code. The content of this method is
33      * always regenerated by the Form Editor.
34      */

35     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
36
private void initComponents() {
37         javax.swing.JToggleButton JavaDoc jtb1;
38
39         buttonGroup1 = new javax.swing.ButtonGroup JavaDoc();
40         jFileChooser1 = new javax.swing.JFileChooser JavaDoc();
41         jFrame1 = new javax.swing.JFrame JavaDoc();
42         jLabel3 = new javax.swing.JLabel JavaDoc();
43         jToggleButton3 = new javax.swing.JToggleButton JavaDoc();
44         jCheckBox3 = new javax.swing.JCheckBox JavaDoc();
45         jButton4 = new javax.swing.JButton JavaDoc();
46         jDialog1 = new javax.swing.JDialog JavaDoc();
47         jButton3 = new javax.swing.JButton JavaDoc();
48         jToggleButton2 = new javax.swing.JToggleButton JavaDoc();
49         jCheckBox2 = new javax.swing.JCheckBox JavaDoc();
50         jRadioButton2 = new javax.swing.JRadioButton JavaDoc();
51         buttonGroup2 = new javax.swing.ButtonGroup JavaDoc();
52         jComboBox1 = new javax.swing.JComboBox JavaDoc();
53         jList1 = new javax.swing.JList JavaDoc();
54         jTextField1 = new javax.swing.JTextField JavaDoc();
55         jPopupMenu1 = new javax.swing.JPopupMenu JavaDoc();
56         jMenuBar1 = new javax.swing.JMenuBar JavaDoc();
57         jMenu1 = new javax.swing.JMenu JavaDoc();
58         jMenuItem2 = new javax.swing.JMenuItem JavaDoc();
59         jMenuItem1 = new javax.swing.JMenuItem JavaDoc();
60         jMenuItem3 = new javax.swing.JMenuItem JavaDoc();
61         jMenuItem4 = new javax.swing.JMenuItem JavaDoc();
62         jl1111 = new javax.swing.JLabel JavaDoc();
63         jb1111 = new javax.swing.JButton JavaDoc();
64         jtb1 = new javax.swing.JToggleButton JavaDoc();
65         jcb1111 = new javax.swing.JCheckBox JavaDoc();
66         jrb1111 = new javax.swing.JRadioButton JavaDoc();
67         jsb111 = new javax.swing.JScrollBar JavaDoc();
68         jsp1 = new javax.swing.JScrollPane JavaDoc();
69         js111 = new javax.swing.JSlider JavaDoc();
70         jpb1 = new javax.swing.JProgressBar JavaDoc();
71         jSplitPane1 = new javax.swing.JSplitPane JavaDoc();
72         jftf1 = new javax.swing.JFormattedTextField JavaDoc();
73         jpf1 = new javax.swing.JPasswordField JavaDoc();
74         jSpinner1 = new javax.swing.JSpinner JavaDoc();
75         jSeparator1 = new javax.swing.JSeparator JavaDoc();
76         jTextPane1 = new javax.swing.JTextPane JavaDoc();
77         jEditorPane1 = new javax.swing.JEditorPane JavaDoc();
78         jTable1 = new javax.swing.JTable JavaDoc();
79         jToolBar1 = new javax.swing.JToolBar JavaDoc();
80         jInternalFrame1 = new javax.swing.JInternalFrame JavaDoc();
81         jLayeredPane1 = new javax.swing.JLayeredPane JavaDoc();
82         jDesktopPane1 = new javax.swing.JDesktopPane JavaDoc();
83         jOptionPane1 = new javax.swing.JOptionPane JavaDoc();
84         jColorChooser1 = new javax.swing.JColorChooser JavaDoc();
85         jLabel2 = new javax.swing.JLabel JavaDoc();
86
87         jLabel3.setText("jLabel3");
88         jFrame1.getContentPane().add(jLabel3, java.awt.BorderLayout.CENTER);
89
90         jToggleButton3.setText("jToggleButton3");
91         jFrame1.getContentPane().add(jToggleButton3, java.awt.BorderLayout.NORTH);
92
93         jCheckBox3.setText("jCheckBox3");
94         jFrame1.getContentPane().add(jCheckBox3, java.awt.BorderLayout.SOUTH);
95
96         jButton4.setText("jButton4");
97         jFrame1.getContentPane().add(jButton4, java.awt.BorderLayout.EAST);
98
99         jButton3.setText("jButton3");
100         jToggleButton2.setText("jToggleButton2");
101         jCheckBox2.setText("jCheckBox2");
102         jRadioButton2.setText("jRadioButton2");
103         jTextField1.setText("jTextField1");
104         jMenu1.setText("Menu");
105         jMenuItem2.setText("Item");
106         jMenu1.add(jMenuItem2);
107
108         jMenuItem1.setText("Item");
109         jMenu1.add(jMenuItem1);
110
111         jMenuItem3.setText("Item");
112         jMenu1.add(jMenuItem3);
113
114         jMenuItem4.setText("Item");
115         jMenu1.add(jMenuItem4);
116
117         jMenuBar1.add(jMenu1);
118
119         getContentPane().setLayout(null);
120
121         addWindowListener(new java.awt.event.WindowAdapter JavaDoc() {
122             public void windowClosing(java.awt.event.WindowEvent JavaDoc evt) {
123                 exitForm(evt);
124             }
125         });
126
127         jl1111.setText("jLabel1");
128         getContentPane().add(jl1111);
129         jl1111.setBounds(0, 0, 400, 15);
130
131         jb1111.setText("jB");
132         jb1111.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
133         getContentPane().add(jb1111);
134         jb1111.setBounds(60, 170, 16, 19);
135
136         jtb1.setText("jToggleButton1");
137         getContentPane().add(jtb1);
138         jtb1.setBounds(260, 120, 131, 25);
139
140         jcb1111.setText("jCb");
141         getContentPane().add(jcb1111);
142         jcb1111.setBounds(170, 70, 46, 23);
143
144         jrb1111.setText("jRadioButton1");
145         getContentPane().add(jrb1111);
146         jrb1111.setBounds(60, 50, 114, 23);
147
148         getContentPane().add(jsb111);
149         jsb111.setBounds(240, 200, 17, 61);
150
151         getContentPane().add(jsp1);
152         jsp1.setBounds(0, 130, 3, 3);
153
154         getContentPane().add(js111);
155         js111.setBounds(50, 70, 200, 16);
156
157         getContentPane().add(jpb1);
158         jpb1.setBounds(340, 40, 148, 14);
159
160         jSplitPane1.setBorder(new javax.swing.border.SoftBevelBorder JavaDoc(javax.swing.border.BevelBorder.RAISED));
161         getContentPane().add(jSplitPane1);
162         jSplitPane1.setBounds(50, 120, 227, 31);
163
164         jftf1.setText("jtf");
165         getContentPane().add(jftf1);
166         jftf1.setBounds(20, 270, 16, 19);
167
168         getContentPane().add(jpf1);
169         jpf1.setBounds(180, 220, 4, 19);
170
171         jSpinner1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
172         getContentPane().add(jSpinner1);
173         jSpinner1.setBounds(350, 270, 28, 20);
174
175         getContentPane().add(jSeparator1);
176         jSeparator1.setBounds(320, 180, 0, 2);
177
178         getContentPane().add(jTextPane1);
179         jTextPane1.setBounds(190, 40, 6, 21);
180
181         getContentPane().add(jEditorPane1);
182         jEditorPane1.setBounds(280, 40, 106, 21);
183
184         jTable1.setBorder(javax.swing.BorderFactory.createCompoundBorder());
185         jTable1.setModel(new javax.swing.table.DefaultTableModel JavaDoc(
186             new Object JavaDoc [][] {
187                 {null, null, null, null},
188                 {null, null, null, null},
189                 {null, null, null, null},
190                 {null, null, null, null}
191             },
192             new String JavaDoc [] {
193                 "Title 1", "Title 2", "Title 3", "Title 4"
194             }
195         ));
196         getContentPane().add(jTable1);
197         jTable1.setBounds(100, 20, 300, 64);
198
199         getContentPane().add(jToolBar1);
200         jToolBar1.setBounds(40, 40, 18, 4);
201
202         jInternalFrame1.setVisible(true);
203         getContentPane().add(jInternalFrame1);
204         jInternalFrame1.setBounds(40, 90, 30, 32);
205
206         getContentPane().add(jLayeredPane1);
207         jLayeredPane1.setBounds(320, 200, 0, 0);
208
209         getContentPane().add(jDesktopPane1);
210         jDesktopPane1.setBounds(210, 280, 0, 0);
211
212         getContentPane().add(jOptionPane1);
213         jOptionPane1.setBounds(350, 190, 262, 90);
214
215         jColorChooser1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
216         getContentPane().add(jColorChooser1);
217         jColorChooser1.setBounds(40, 220, 433, 340);
218
219         jLabel2.setText("jLabel2");
220         getContentPane().add(jLabel2);
221         jLabel2.setBounds(30, 30, 45, 15);
222
223         pack();
224     }// </editor-fold>//GEN-END:initComponents
225

226     /** Exit the Application */
227     private void exitForm(java.awt.event.WindowEvent JavaDoc evt) {//GEN-FIRST:event_exitForm
228
System.exit(0);
229     }//GEN-LAST:event_exitForm
230

231     /**
232      * @param args the command line arguments
233      */

234     public static void main(String JavaDoc args[]) {
235         new JFrame20kB().show();
236     }
237     
238     
239     // Variables declaration - do not modify//GEN-BEGIN:variables
240
private javax.swing.ButtonGroup JavaDoc buttonGroup1;
241     private javax.swing.ButtonGroup JavaDoc buttonGroup2;
242     private javax.swing.JButton JavaDoc jButton3;
243     private javax.swing.JButton JavaDoc jButton4;
244     private javax.swing.JCheckBox JavaDoc jCheckBox2;
245     private javax.swing.JCheckBox JavaDoc jCheckBox3;
246     private javax.swing.JColorChooser JavaDoc jColorChooser1;
247     private javax.swing.JComboBox JavaDoc jComboBox1;
248     private javax.swing.JDesktopPane JavaDoc jDesktopPane1;
249     private javax.swing.JDialog JavaDoc jDialog1;
250     private javax.swing.JEditorPane JavaDoc jEditorPane1;
251     private javax.swing.JFileChooser JavaDoc jFileChooser1;
252     private javax.swing.JFrame JavaDoc jFrame1;
253     private javax.swing.JInternalFrame JavaDoc jInternalFrame1;
254     private javax.swing.JLabel JavaDoc jLabel2;
255     private javax.swing.JLabel JavaDoc jLabel3;
256     private javax.swing.JLayeredPane JavaDoc jLayeredPane1;
257     private javax.swing.JList JavaDoc jList1;
258     private javax.swing.JMenu JavaDoc jMenu1;
259     private javax.swing.JMenuBar JavaDoc jMenuBar1;
260     private javax.swing.JMenuItem JavaDoc jMenuItem1;
261     private javax.swing.JMenuItem JavaDoc jMenuItem2;
262     private javax.swing.JMenuItem JavaDoc jMenuItem3;
263     private javax.swing.JMenuItem JavaDoc jMenuItem4;
264     private javax.swing.JOptionPane JavaDoc jOptionPane1;
265     private javax.swing.JPopupMenu JavaDoc jPopupMenu1;
266     private javax.swing.JRadioButton JavaDoc jRadioButton2;
267     private javax.swing.JSeparator JavaDoc jSeparator1;
268     private javax.swing.JSpinner JavaDoc jSpinner1;
269     private javax.swing.JSplitPane JavaDoc jSplitPane1;
270     private javax.swing.JTable JavaDoc jTable1;
271     private javax.swing.JTextField JavaDoc jTextField1;
272     private javax.swing.JTextPane JavaDoc jTextPane1;
273     private javax.swing.JToggleButton JavaDoc jToggleButton2;
274     private javax.swing.JToggleButton JavaDoc jToggleButton3;
275     private javax.swing.JToolBar JavaDoc jToolBar1;
276     private javax.swing.JButton JavaDoc jb1111;
277     private javax.swing.JCheckBox JavaDoc jcb1111;
278     private javax.swing.JFormattedTextField JavaDoc jftf1;
279     private javax.swing.JLabel JavaDoc jl1111;
280     private javax.swing.JProgressBar JavaDoc jpb1;
281     private javax.swing.JPasswordField JavaDoc jpf1;
282     private javax.swing.JRadioButton JavaDoc jrb1111;
283     private javax.swing.JSlider JavaDoc js111;
284     private javax.swing.JScrollBar JavaDoc jsb111;
285     private javax.swing.JScrollPane JavaDoc jsp1;
286     // End of variables declaration//GEN-END:variables
287

288 }
289
Popular Tags