Source Code Cross Referenced for TMPanel.java in  » Collaboration » JacORB » org » jacorb » poa » gui » poa » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » JacORB » org.jacorb.poa.gui.poa 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.jacorb.poa.gui.poa;
002:
003:        /*
004:         *        JacORB - a free Java ORB
005:         *
006:         *   Copyright (C) 1997-2004 Gerald Brose.
007:         *
008:         *   This library is free software; you can redistribute it and/or
009:         *   modify it under the terms of the GNU Library General Public
010:         *   License as published by the Free Software Foundation; either
011:         *   version 2 of the License, or (at your option) any later version.
012:         *
013:         *   This library is distributed in the hope that it will be useful,
014:         *   but WITHOUT ANY WARRANTY; without even the implied warranty of
015:         *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
016:         *   Library General Public License for more details.
017:         *
018:         *   You should have received a copy of the GNU Library General Public
019:         *   License along with this library; if not, write to the Free
020:         *   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
021:         */
022:
023:        import org.jacorb.poa.gui.beans.FillLevelBar;
024:
025:        /**
026:         * @author Reimo Tiedemann, FU Berlin
027:         * @version 1.0, 05/03/99, RT
028:         */
029:        public class TMPanel extends java.awt.Panel {
030:            private java.awt.Label ivjLabel1 = null;
031:            private java.awt.Label ivjLabel2 = null;
032:            private org.jacorb.poa.gui.beans.FillLevelBar ivjFillLevelBar1 = null;
033:            private java.awt.Label ivjLabel3 = null;
034:            private org.jacorb.poa.gui.beans.FillLevelBar ivjFillLevelBar2 = null;
035:
036:            FillLevelBar _getActiveRequestsBar() {
037:                return getFillLevelBar1();
038:            }
039:
040:            /**
041:             * Return the FillLevelBar1 property value.
042:             * @return org.jacorb.poa.gui.beans.FillLevelBar
043:             */
044:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
045:            private org.jacorb.poa.gui.beans.FillLevelBar getFillLevelBar1() {
046:                if (ivjFillLevelBar1 == null) {
047:                    try {
048:                        ivjFillLevelBar1 = new org.jacorb.poa.gui.beans.FillLevelBar();
049:                        ivjFillLevelBar1.setName("FillLevelBar1");
050:                        ivjFillLevelBar1.setLocation(30, 35);
051:                        // user code begin {1}
052:                        // user code end
053:                    } catch (java.lang.Throwable ivjExc) {
054:                        // user code begin {2}
055:                        // user code end
056:                        handleException(ivjExc);
057:                    }
058:                }
059:                ;
060:                return ivjFillLevelBar1;
061:            }
062:
063:            /**
064:             * Return the FillLevelBar1 property value.
065:             * @return org.jacorb.poa.gui.beans.FillLevelBar
066:             */
067:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
068:            private org.jacorb.poa.gui.beans.FillLevelBar getFillLevelBar2() {
069:                if (ivjFillLevelBar2 == null) {
070:                    try {
071:                        ivjFillLevelBar2 = new org.jacorb.poa.gui.beans.FillLevelBar();
072:                        ivjFillLevelBar2.setName("FillLevelBar2");
073:                        ivjFillLevelBar2.setLocation(105, 35);
074:                        // user code begin {1}
075:                        // user code end
076:                    } catch (java.lang.Throwable ivjExc) {
077:                        // user code begin {2}
078:                        // user code end
079:                        handleException(ivjExc);
080:                    }
081:                }
082:                ;
083:                return ivjFillLevelBar2;
084:            }
085:
086:            /**
087:             * Return the Label1 property value.
088:             * @return java.awt.Label
089:             */
090:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
091:            private java.awt.Label getLabel1() {
092:                if (ivjLabel1 == null) {
093:                    try {
094:                        ivjLabel1 = new java.awt.Label();
095:                        ivjLabel1.setName("Label1");
096:                        ivjLabel1.setFont(new java.awt.Font("dialog", 2, 10));
097:                        ivjLabel1.setAlignment(java.awt.Label.CENTER);
098:                        ivjLabel1.setText("Request Processing");
099:                        ivjLabel1.setBounds(10, 10, 140, 12);
100:                        ivjLabel1.setForeground(java.awt.Color.black);
101:                        // user code begin {1}
102:                        // user code end
103:                    } catch (java.lang.Throwable ivjExc) {
104:                        // user code begin {2}
105:                        // user code end
106:                        handleException(ivjExc);
107:                    }
108:                }
109:                ;
110:                return ivjLabel1;
111:            }
112:
113:            /**
114:             * Return the Label2 property value.
115:             * @return java.awt.Label
116:             */
117:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
118:            private java.awt.Label getLabel2() {
119:                if (ivjLabel2 == null) {
120:                    try {
121:                        ivjLabel2 = new java.awt.Label();
122:                        ivjLabel2.setName("Label2");
123:                        ivjLabel2.setFont(new java.awt.Font("dialog", 2, 10));
124:                        ivjLabel2.setAlignment(java.awt.Label.CENTER);
125:                        ivjLabel2.setText("Active Requests");
126:                        ivjLabel2.setBounds(4, 22, 80, 12);
127:                        ivjLabel2.setForeground(java.awt.Color.black);
128:                        // user code begin {1}
129:                        // user code end
130:                    } catch (java.lang.Throwable ivjExc) {
131:                        // user code begin {2}
132:                        // user code end
133:                        handleException(ivjExc);
134:                    }
135:                }
136:                ;
137:                return ivjLabel2;
138:            }
139:
140:            /**
141:             * Return the Label3 property value.
142:             * @return java.awt.Label
143:             */
144:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
145:            private java.awt.Label getLabel3() {
146:                if (ivjLabel3 == null) {
147:                    try {
148:                        ivjLabel3 = new java.awt.Label();
149:                        ivjLabel3.setName("Label3");
150:                        ivjLabel3.setFont(new java.awt.Font("dialog", 2, 10));
151:                        ivjLabel3.setAlignment(java.awt.Label.CENTER);
152:                        ivjLabel3.setText("Thread Pool");
153:                        ivjLabel3.setBounds(90, 22, 62, 12);
154:                        ivjLabel3.setForeground(java.awt.Color.black);
155:                        // user code begin {1}
156:                        // user code end
157:                    } catch (java.lang.Throwable ivjExc) {
158:                        // user code begin {2}
159:                        // user code end
160:                        handleException(ivjExc);
161:                    }
162:                }
163:                ;
164:                return ivjLabel3;
165:            }
166:
167:            FillLevelBar _getThreadPoolBar() {
168:                return getFillLevelBar2();
169:            }
170:
171:            /**
172:             * Called whenever the part throws an exception.
173:             * @param exception java.lang.Throwable
174:             */
175:            private void handleException(Throwable exception) {
176:
177:                /* Uncomment the following lines to print uncaught exceptions to stdout */
178:                // System.out.println("--------- UNCAUGHT EXCEPTION ---------");
179:                // exception.printStackTrace(System.out);
180:            }
181:
182:            /**
183:             * Initialize the class.
184:             */
185:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
186:            private void initialize() {
187:                // user code begin {1}
188:                // user code end
189:                setName("AOMPanel");
190:                setLayout(null);
191:                setBackground(java.awt.SystemColor.control);
192:                setSize(160, 200);
193:                add(getLabel1(), getLabel1().getName());
194:                add(getLabel2(), getLabel2().getName());
195:                add(getFillLevelBar1(), getFillLevelBar1().getName());
196:                add(getLabel3(), getLabel3().getName());
197:                add(getFillLevelBar2(), getFillLevelBar2().getName());
198:                // user code begin {2}
199:                // user code end
200:            }
201:
202:            /**
203:             * AOMPanel constructor comment.
204:             * @param layout java.awt.LayoutManager
205:             */
206:            public TMPanel(java.awt.LayoutManager layout) {
207:                super (layout);
208:            }
209:
210:            /**
211:             * main entrypoint - starts the part when it is run as an application
212:             * @param args java.lang.String[]
213:             */
214:            public static void main(java.lang.String[] args) {
215:                try {
216:                    java.awt.Frame frame;
217:                    try {
218:                        Class aFrameClass = Class
219:                                .forName("com.ibm.uvm.abt.edit.TestFrame");
220:                        frame = (java.awt.Frame) aFrameClass.newInstance();
221:                    } catch (java.lang.Throwable ivjExc) {
222:                        frame = new java.awt.Frame();
223:                    }
224:                    TMPanel aTMPanel;
225:                    aTMPanel = new TMPanel();
226:                    frame.add("Center", aTMPanel);
227:                    frame.setSize(aTMPanel.getSize());
228:                    frame.setVisible(true);
229:                } catch (Throwable exception) {
230:                    System.err
231:                            .println("Exception occurred in main() of java.awt.Panel");
232:                    exception.printStackTrace(System.out);
233:                }
234:            }
235:
236:            public void paint(java.awt.Graphics g) {
237:                g.setColor(getBackground());
238:                g.fill3DRect(0, 0, getBounds().width, getBounds().height, true);
239:            }
240:
241:            /**
242:             * Constructor
243:             */
244:            /* WARNING: THIS METHOD WILL BE REGENERATED. */
245:            public TMPanel() {
246:                super();
247:                initialize();
248:            }
249:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.