1 package org.jacorb.poa.gui.beans; 2 3 22 23 28 public class DoubleListHeaderPanel extends java.awt.Panel { 29 private java.awt.Label ivjHeaderLabel1 = null; 30 private java.awt.Label ivjHeaderLabel2 = null; 31 34 35 public DoubleListHeaderPanel() { 36 super(); 37 initialize(); 38 } 39 43 public DoubleListHeaderPanel(java.awt.LayoutManager layout) { 44 super(layout); 45 } 46 java.awt.Label _getHeaderLabel1() { 47 return getHeaderLabel1(); 48 } 49 java.awt.Label _getHeaderLabel2() { 50 return getHeaderLabel2(); 51 } 52 56 57 private java.awt.Label getHeaderLabel1() { 58 if (ivjHeaderLabel1 == null) { 59 try { 60 ivjHeaderLabel1 = new java.awt.Label (); 61 ivjHeaderLabel1.setName("HeaderLabel1"); 62 ivjHeaderLabel1.setAlignment(java.awt.Label.LEFT); 63 ivjHeaderLabel1.setFont(new java.awt.Font ("dialog", 2, 10)); 64 ivjHeaderLabel1.setText("Label1"); 65 ivjHeaderLabel1.setBackground(java.awt.SystemColor.control); 66 ivjHeaderLabel1.setBounds(10, 0, 180, 20); 67 } catch (java.lang.Throwable ivjExc) { 70 handleException(ivjExc); 73 } 74 }; 75 return ivjHeaderLabel1; 76 } 77 81 82 private java.awt.Label getHeaderLabel2() { 83 if (ivjHeaderLabel2 == null) { 84 try { 85 ivjHeaderLabel2 = new java.awt.Label (); 86 ivjHeaderLabel2.setName("HeaderLabel2"); 87 ivjHeaderLabel2.setAlignment(java.awt.Label.LEFT); 88 ivjHeaderLabel2.setFont(new java.awt.Font ("dialog", 2, 10)); 89 ivjHeaderLabel2.setText("Label2"); 90 ivjHeaderLabel2.setBackground(java.awt.SystemColor.control); 91 ivjHeaderLabel2.setBounds(200, 0, 190, 20); 92 } catch (java.lang.Throwable ivjExc) { 95 handleException(ivjExc); 98 } 99 }; 100 return ivjHeaderLabel2; 101 } 102 106 private void handleException(Throwable exception) { 107 108 109 } 112 115 116 private void initialize() { 117 setName("DoubleListTitlePanel"); 120 setLayout(null); 121 setBackground(java.awt.SystemColor.control); 122 setSize(400, 20); 123 add(getHeaderLabel1(), getHeaderLabel1().getName()); 124 add(getHeaderLabel2(), getHeaderLabel2().getName()); 125 } 128 132 public static void main(java.lang.String [] args) { 133 try { 134 java.awt.Frame frame; 135 try { 136 Class aFrameClass = Class.forName("com.ibm.uvm.abt.edit.TestFrame"); 137 frame = (java.awt.Frame )aFrameClass.newInstance(); 138 } catch (java.lang.Throwable ivjExc) { 139 frame = new java.awt.Frame (); 140 } 141 DoubleListHeaderPanel aDoubleListHeaderPanel; 142 aDoubleListHeaderPanel = new DoubleListHeaderPanel(); 143 frame.add("Center", aDoubleListHeaderPanel); 144 frame.setSize(aDoubleListHeaderPanel.getSize()); 145 frame.setVisible(true); 146 } catch (Throwable exception) { 147 System.err.println("Exception occurred in main() of java.awt.Panel"); 148 exception.printStackTrace(System.out); 149 } 150 } 151 152 } 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | Popular Tags |