-
Working with JTree
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)
tree.getLastSelectedPathComponent();
Last edited by bob1983; 01-26-2006 at 09:37 AM.
-
I'm a little confused. Is the chart coming off of the tree display? Or is it just in another panel?
-
off the tree display. each time i click a node within the tree i want a different chart to appear
-
you'll have to create your own tree cell renderer class. there's many examples out there of how to customize renderers, just do a quick search.
Similar Threads
-
By JavaFaces in forum Java
Replies: 1
Last Post: 01-04-2006, 01:50 AM
-
By JavaFaces in forum Java
Replies: 1
Last Post: 01-04-2006, 01:34 AM
-
By JavaFaces in forum Java
Replies: 0
Last Post: 01-03-2006, 02:16 PM
-
By cbe_seenu in forum .NET
Replies: 1
Last Post: 07-28-2005, 03:53 AM
-
By rahul phatak rahulphatak in forum ASP.NET
Replies: 0
Last Post: 06-01-2000, 05:41 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks