I could use some help. I've got a JTree, it's a file browser. I'm trying to programatically select a cell in the tree. I'm making the following calls:
File home = new File(System.getProperty(HOME_DIR)); setTree(home, newFile); TreePath path = this.pathFromFile(home); tree.setSelectionPath(path);
But, that doesn't seem to highlight the cell. I've checked, and the path is valid, the path is getting expanded, but the folder isn't highlighted as if someone had clicked on it - which is what I'm going for.
Anyone have any ideas.
Thanks in advance, Bryant P.