A
Allan Valeriano
Hi,
I have JSplitPane, where the left panel is a JScrollPane with a JTree
inside, and the right panel is a JTable.
This is supposed to be something like the windows explorer, where I
have a tree representing folders on the left and the children listed
on the right. That way, when I double click a node on the right, the
node representing it should expand on the tree and get selected.
This part is working fine, but when I expand a node which is too deep
in the tree, it gets hidden. I'd like to auto scroll the bar, so the
selected node would be visible.
Anybody knows how can I do that? I hope I didn't make it too confusing
to understand.
thanks in advance for any help.
I have JSplitPane, where the left panel is a JScrollPane with a JTree
inside, and the right panel is a JTable.
This is supposed to be something like the windows explorer, where I
have a tree representing folders on the left and the children listed
on the right. That way, when I double click a node on the right, the
node representing it should expand on the tree and get selected.
This part is working fine, but when I expand a node which is too deep
in the tree, it gets hidden. I'd like to auto scroll the bar, so the
selected node would be visible.
Anybody knows how can I do that? I hope I didn't make it too confusing
to understand.
thanks in advance for any help.