JTrees and Renderers
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!!!!