Skip to main content

JTrees and Renderers

2 replies [Last post]
vitineitor
Offline
Joined: 2007-05-16
Points: 0

Hi there,

I'm trying to do something with a JTree, but I can't find anywhere how to perform that.

I'm making a little file explorer, with a JTree to navigate through the file structure. I have also two buttons (up and back). When I select a directory with the mouse, the corresponding node is highlighted, but when I push the button up, or the button back, it isn't (I mean, the directory is caught well, but no nodes are highlighted). It uses the DefaultTreeCellRenderer

Any ideas to highlight the directory when I push the up or back button?.

Thank you very much!!!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vitineitor
Offline
Joined: 2007-05-16
Points: 0

Ok, sorry

linuxhippy
Offline
Joined: 2004-01-07
Points: 0

sorry this is the performance-forum. Maybe you'll find help at forum.java.sun.com ->Swing

lg Clemens