Hello,

I have some problems to expand a JTree:


1) JTree is painted
2) I save the path with getSelectionPath
3) change something with the data so I have to refresh the tree
4) I repaint the tree (?) with the method from 1)
5) I want expand the tree path but it doesnt work with expandTree().

I think 4) is wrong. But what schould I do if the data changed and I have to repaint the tree and expand the old path ? I think if i repaint the tree the path data from 2) are lost.

Do you have an idea ?

Martin