01: package examples.swingtemplate;
02:
03: import javax.swing.*;
04:
05: public class TestTemplateLayout1 extends JFrame {
06:
07: private javax.swing.JPanel jContentPane = null;
08:
09: private javax.swing.JPanel jPanel = null;
10: private javax.swing.JPanel jPanel1 = null;
11: private javax.swing.JPanel jPanel2 = null;
12:
13: /**
14: * This is the default constructor
15: */
16: public TestTemplateLayout1() {
17: super ();
18: initialize();
19: }
20:
21: /**
22: * This method initializes this
23: *
24: * @return void
25: */
26: private void initialize() {
27: this .setSize(408, 295);
28: this .setContentPane(getJContentPane());
29: }
30:
31: /**
32: * This method initializes jContentPane
33: *
34: * @return javax.swing.JPanel
35: */
36: private javax.swing.JPanel getJContentPane() {
37: if (jContentPane == null) {
38: jContentPane = new javax.swing.JPanel();
39: jContentPane.setLayout(null);
40: jContentPane.add(getJPanel(), null);
41: jContentPane.add(getJPanel1(), null);
42: jContentPane.add(getJPanel2(), null);
43: }
44: return jContentPane;
45: }
46:
47: /**
48: * This method initializes jPanel
49: *
50: * @return javax.swing.JPanel
51: */
52: private javax.swing.JPanel getJPanel() {
53: if (jPanel == null) {
54: jPanel = new javax.swing.JPanel();
55: jPanel.setBounds(19, 18, 107, 77);
56: jPanel.setName("ph1");
57: }
58: return jPanel;
59: }
60:
61: /**
62: * This method initializes jPanel1
63: *
64: * @return javax.swing.JPanel
65: */
66: private javax.swing.JPanel getJPanel1() {
67: if (jPanel1 == null) {
68: jPanel1 = new javax.swing.JPanel();
69: jPanel1.setBounds(190, 48, 128, 100);
70: jPanel1.setName("ph2");
71: }
72: return jPanel1;
73: }
74:
75: /**
76: * This method initializes jPanel2
77: *
78: * @return javax.swing.JPanel
79: */
80: private javax.swing.JPanel getJPanel2() {
81: if (jPanel2 == null) {
82: jPanel2 = new javax.swing.JPanel();
83: jPanel2.setBounds(53, 146, 116, 96);
84: jPanel2.setName("ph3");
85: }
86: return jPanel2;
87: }
88: } // @jve:visual-info decl-index=0 visual-constraint="10,10"
|