setSelectionPath() and expandPath()

hi everybody. following problem:

i want to save the SelectionPath in a JTable, redraw the table and then have the saved SelectionPath expand out again. the selected node is a leaf.

i've tried setExpandsSelectedPath(true) and setSelectionPath(savedPath), and also expandPath(savedPath.getParentPath()) but the JTree refuses to expand to show this path.

does anyone know what i'm doing wrong?

[417 byte] By [howlingmadhowiea] at [2007-11-27 5:57:40]
# 1
expandPath should do it, but you need to supply the target node as argument, not its parent.expandPath will assure visibility of the node you specify. So if you specify the parent, you won't see the child.Did this solve your problem?
rebola at 2007-7-12 16:30:53 > top of Java-index,Desktop,Core GUI APIs...