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


001:        /*
002:         *  $Header: /cvs/j3dfly/J3dEditor/src/org/jdesktop/j3dedit/scenegrapheditor/J3dNodesToolbar.java,v 1.1 2005/04/20 22:20:45 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;
019:
020:        import javax.swing.JPanel;
021:        import java.awt.Component;
022:        import java.awt.Container;
023:
024:        /**
025:         * @author Paul Byrne
026:         * @version	1.6, 01/18/02
027:         */
028:        public class J3dNodesToolbar extends javax.swing.JPanel implements 
029:                GroupSelectionListener {
030:
031:            /** Creates new form J3dNodesToolbar */
032:            public J3dNodesToolbar() {
033:                initComponents();
034:                groupSelected(false); // Initial state has no selection
035:            }
036:
037:            public javax.swing.JTabbedPane getTabPane() {
038:                return jTabbedPane1;
039:            }
040:
041:            /**
042:             * GroupSelectionListener method
043:             *
044:             * Called with true when the user selects a group Node
045:             * Called with false when a leaf node or no node is selected
046:             */
047:            public void groupSelected(boolean selected) {
048:                jTabbedPane1.setEnabled(selected);
049:
050:                Container comp = (Container) jTabbedPane1
051:                        .getComponentAt(jTabbedPane1.getModel()
052:                                .getSelectedIndex());
053:                for (int i = 0; i < comp.getComponentCount(); i++)
054:                    comp.getComponent(i).setEnabled(selected);
055:            }
056:
057:            /** This method is called from within the constructor to
058:             * initialize the form.
059:             * WARNING: Do NOT modify this code. The content of this method is
060:             * always regenerated by the FormEditor.
061:             */
062:            private void initComponents() {//GEN-BEGIN:initComponents
063:                jTabbedPane1 = new javax.swing.JTabbedPane();
064:                groupPanel = new javax.swing.JPanel();
065:                behaviorPanel = new javax.swing.JPanel();
066:                lightPanel = new javax.swing.JPanel();
067:                geometryPanel = new javax.swing.JPanel();
068:                soundPanel = new javax.swing.JPanel();
069:                setLayout(new java.awt.BorderLayout());
070:                setMinimumSize(new java.awt.Dimension(0, 0));
071:
072:                groupPanel.setLayout(new java.awt.FlowLayout(0, 5, 5));
073:                jTabbedPane1.addTab("Group", groupPanel);
074:
075:                behaviorPanel.setLayout(new java.awt.FlowLayout(0, 5, 5));
076:                jTabbedPane1.addTab("Behavior", behaviorPanel);
077:
078:                lightPanel.setLayout(new java.awt.FlowLayout(0, 5, 5));
079:                jTabbedPane1.addTab("Light", lightPanel);
080:
081:                geometryPanel.setLayout(new java.awt.FlowLayout(0, 5, 5));
082:                jTabbedPane1.addTab("Geometry", geometryPanel);
083:
084:                soundPanel.setLayout(new java.awt.FlowLayout(0, 5, 5));
085:                jTabbedPane1.addTab("Sound", soundPanel);
086:
087:                add(jTabbedPane1, java.awt.BorderLayout.CENTER);
088:
089:            }//GEN-END:initComponents
090:
091:            // Variables declaration - do not modify//GEN-BEGIN:variables
092:            private javax.swing.JTabbedPane jTabbedPane1;
093:            private javax.swing.JPanel groupPanel;
094:            private javax.swing.JPanel behaviorPanel;
095:            private javax.swing.JPanel lightPanel;
096:            private javax.swing.JPanel geometryPanel;
097:            private javax.swing.JPanel soundPanel;
098:            // End of variables declaration//GEN-END:variables
099:
100:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.