1 package org.jacorb.poa.gui.poa; 2 3 22 23 import org.jacorb.poa.gui.beans.FillLevelBar; 24 25 29 public class TMPanel extends java.awt.Panel { 30 private java.awt.Label ivjLabel1 = null; 31 private java.awt.Label ivjLabel2 = null; 32 private org.jacorb.poa.gui.beans.FillLevelBar ivjFillLevelBar1 = null; 33 private java.awt.Label ivjLabel3 = null; 34 private org.jacorb.poa.gui.beans.FillLevelBar ivjFillLevelBar2 = null; 35 FillLevelBar _getActiveRequestsBar() { 36 return getFillLevelBar1(); 37 } 38 42 43 private org.jacorb.poa.gui.beans.FillLevelBar getFillLevelBar1() { 44 if (ivjFillLevelBar1 == null) { 45 try { 46 ivjFillLevelBar1 = new org.jacorb.poa.gui.beans.FillLevelBar(); 47 ivjFillLevelBar1.setName("FillLevelBar1"); 48 ivjFillLevelBar1.setLocation(30, 35); 49 } catch (java.lang.Throwable ivjExc) { 52 handleException(ivjExc); 55 } 56 }; 57 return ivjFillLevelBar1; 58 } 59 63 64 private org.jacorb.poa.gui.beans.FillLevelBar getFillLevelBar2() { 65 if (ivjFillLevelBar2 == null) { 66 try { 67 ivjFillLevelBar2 = new org.jacorb.poa.gui.beans.FillLevelBar(); 68 ivjFillLevelBar2.setName("FillLevelBar2"); 69 ivjFillLevelBar2.setLocation(105, 35); 70 } catch (java.lang.Throwable ivjExc) { 73 handleException(ivjExc); 76 } 77 }; 78 return ivjFillLevelBar2; 79 } 80 84 85 private java.awt.Label getLabel1() { 86 if (ivjLabel1 == null) { 87 try { 88 ivjLabel1 = new java.awt.Label (); 89 ivjLabel1.setName("Label1"); 90 ivjLabel1.setFont(new java.awt.Font ("dialog", 2, 10)); 91 ivjLabel1.setAlignment(java.awt.Label.CENTER); 92 ivjLabel1.setText("Request Processing"); 93 ivjLabel1.setBounds(10, 10, 140, 12); 94 ivjLabel1.setForeground(java.awt.Color.black); 95 } catch (java.lang.Throwable ivjExc) { 98 handleException(ivjExc); 101 } 102 }; 103 return ivjLabel1; 104 } 105 109 110 private java.awt.Label getLabel2() { 111 if (ivjLabel2 == null) { 112 try { 113 ivjLabel2 = new java.awt.Label (); 114 ivjLabel2.setName("Label2"); 115 ivjLabel2.setFont(new java.awt.Font ("dialog", 2, 10)); 116 ivjLabel2.setAlignment(java.awt.Label.CENTER); 117 ivjLabel2.setText("Active Requests"); 118 ivjLabel2.setBounds(4, 22, 80, 12); 119 ivjLabel2.setForeground(java.awt.Color.black); 120 } catch (java.lang.Throwable ivjExc) { 123 handleException(ivjExc); 126 } 127 }; 128 return ivjLabel2; 129 } 130 134 135 private java.awt.Label getLabel3() { 136 if (ivjLabel3 == null) { 137 try { 138 ivjLabel3 = new java.awt.Label (); 139 ivjLabel3.setName("Label3"); 140 ivjLabel3.setFont(new java.awt.Font ("dialog", 2, 10)); 141 ivjLabel3.setAlignment(java.awt.Label.CENTER); 142 ivjLabel3.setText("Thread Pool"); 143 ivjLabel3.setBounds(90, 22, 62, 12); 144 ivjLabel3.setForeground(java.awt.Color.black); 145 } catch (java.lang.Throwable ivjExc) { 148 handleException(ivjExc); 151 } 152 }; 153 return ivjLabel3; 154 } 155 FillLevelBar _getThreadPoolBar() { 156 return getFillLevelBar2(); 157 } 158 162 private void handleException(Throwable exception) { 163 164 165 } 168 171 172 private void initialize() { 173 setName("AOMPanel"); 176 setLayout(null); 177 setBackground(java.awt.SystemColor.control); 178 setSize(160, 200); 179 add(getLabel1(), getLabel1().getName()); 180 add(getLabel2(), getLabel2().getName()); 181 add(getFillLevelBar1(), getFillLevelBar1().getName()); 182 add(getLabel3(), getLabel3().getName()); 183 add(getFillLevelBar2(), getFillLevelBar2().getName()); 184 } 187 191 public TMPanel(java.awt.LayoutManager layout) { 192 super(layout); 193 } 194 198 public static void main(java.lang.String [] args) { 199 try { 200 java.awt.Frame frame; 201 try { 202 Class aFrameClass = Class.forName("com.ibm.uvm.abt.edit.TestFrame"); 203 frame = (java.awt.Frame )aFrameClass.newInstance(); 204 } catch (java.lang.Throwable ivjExc) { 205 frame = new java.awt.Frame (); 206 } 207 TMPanel aTMPanel; 208 aTMPanel = new TMPanel(); 209 frame.add("Center", aTMPanel); 210 frame.setSize(aTMPanel.getSize()); 211 frame.setVisible(true); 212 } catch (Throwable exception) { 213 System.err.println("Exception occurred in main() of java.awt.Panel"); 214 exception.printStackTrace(System.out); 215 } 216 } 217 public void paint(java.awt.Graphics g) { 218 g.setColor(getBackground()); 219 g.fill3DRect(0, 0, getBounds().width, getBounds().height, true); 220 } 221 224 225 public TMPanel() { 226 super(); 227 initialize(); 228 } 229 } 230 231 232 233 234 235 236 237 238 239 240 241 242 | Popular Tags |