Source Code Cross Referenced for CommonNodeComponentPanel.java in  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3dedit » scenegrapheditor » nodeeditors » panels » 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 » 6.0 JDK Modules » java 3d » org.jdesktop.j3dedit.scenegrapheditor.nodeeditors.panels 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *  $Header: /cvs/j3dfly/J3dEditor/src/org/jdesktop/j3dedit/scenegrapheditor/nodeeditors/panels/CommonNodeComponentPanel.java,v 1.1 2005/04/20 22:21:04 paulby Exp $
003:         *
004:         *                         Sun Public License Notice
005:         *
006:         *  The contents of this file are subject to the Sun Public License Version
007:         *  1.0 (the "License"). You may not use this file except in compliance with
008:         *  the License. A copy of the License is available at http://www.sun.com/
009:         *  
010:         *  The Original Code is the Java 3D(tm) Scene Graph Editor.
011:         *  The Initial Developer of the Original Code is Paul Byrne.
012:         *  Portions created by Paul Byrne are Copyright (C) 2002.
013:         *  All Rights Reserved.
014:         *  
015:         *  Contributor(s): Paul Byrne.
016:         *  
017:         **/
018:        package org.jdesktop.j3dedit.scenegrapheditor.nodeeditors.panels;
019:
020:        import org.jdesktop.j3dedit.scenegraph.SGNodeComponent;
021:
022:        /**
023:         * Panel for displaying data common for all NodeComponents.
024:         * Currently this is the ReferencedBy count
025:         *
026:         * @author  Paul Byrne
027:         */
028:        public class CommonNodeComponentPanel extends javax.swing.JPanel {
029:
030:            /** Creates new form commonNodeComponentPanel */
031:            public CommonNodeComponentPanel() {
032:                initComponents();
033:            }
034:
035:            /**
036:             * Actually the user can't edit the data displayed here, but this method
037:             * should always be called from the startEdit method of the NodeComponent
038:             */
039:            public void startEdit(SGNodeComponent node) {
040:                if (node == null)
041:                    refCountTF.setText("");
042:                else
043:                    refCountTF.setText(Integer.toString(node
044:                            .getReferencedByCount()));
045:            }
046:
047:            /** This method is called from within the constructor to
048:             * initialize the form.
049:             * WARNING: Do NOT modify this code. The content of this method is
050:             * always regenerated by the Form Editor.
051:             */
052:            private void initComponents() {//GEN-BEGIN:initComponents
053:                java.awt.GridBagConstraints gridBagConstraints;
054:                javax.swing.JLabel nameL;
055:                javax.swing.JLabel refCountL;
056:
057:                refCountL = new javax.swing.JLabel();
058:                refCountTF = new javax.swing.JTextField();
059:                nameL = new javax.swing.JLabel();
060:                nameTF = new javax.swing.JTextField();
061:
062:                setLayout(new java.awt.GridBagLayout());
063:
064:                refCountL.setFont(new java.awt.Font("Dialog", 0, 10));
065:                refCountL.setText("Reference Count");
066:                gridBagConstraints = new java.awt.GridBagConstraints();
067:                gridBagConstraints.gridx = 2;
068:                gridBagConstraints.gridy = 0;
069:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
070:                add(refCountL, gridBagConstraints);
071:
072:                refCountTF.setColumns(4);
073:                refCountTF.setEditable(false);
074:                refCountTF.setFont(new java.awt.Font("Dialog", 0, 10));
075:                refCountTF.setText("0");
076:                refCountTF
077:                        .setToolTipText("The number of Objects that reference this Node Component");
078:                gridBagConstraints = new java.awt.GridBagConstraints();
079:                gridBagConstraints.gridx = 3;
080:                gridBagConstraints.gridy = 0;
081:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
082:                add(refCountTF, gridBagConstraints);
083:
084:                nameL.setFont(new java.awt.Font("Dialog", 0, 10));
085:                nameL.setText("Name");
086:                gridBagConstraints = new java.awt.GridBagConstraints();
087:                gridBagConstraints.gridx = 0;
088:                gridBagConstraints.gridy = 0;
089:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
090:                add(nameL, gridBagConstraints);
091:
092:                nameTF.setColumns(8);
093:                nameTF.setFont(new java.awt.Font("Dialog", 0, 10));
094:                nameTF.setToolTipText("The name of this Node Component");
095:                gridBagConstraints = new java.awt.GridBagConstraints();
096:                gridBagConstraints.gridx = 1;
097:                gridBagConstraints.gridy = 0;
098:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 6);
099:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
100:                add(nameTF, gridBagConstraints);
101:
102:            }//GEN-END:initComponents
103:
104:            // Variables declaration - do not modify//GEN-BEGIN:variables
105:            private javax.swing.JTextField nameTF;
106:            private javax.swing.JTextField refCountTF;
107:            // End of variables declaration//GEN-END:variables
108:
109:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.