I've got a JTree that's a file browser. At startup, the selection path is set to the user's home directory. This tree is in a JScrollpane. What I'd like to do is to set the vertical scroll bar position to have this cell (the user's home dir.) on top of the viewable area.
Basically, I need to find out the position of the selected cell, then move the scrollbar to where it will be visible at the top of the panel. Anyone know how to do this?
Any help is greatly appreciated, Thanks, Bryant P.