views:

53

answers:

1

Hi,

I am working with JTree.
I would like to know what is best the way to know which nodes are expanded in a JTree, so as to save its state (i.e. save all expanded paths).
So that if I call model.reload() the Jtree would not stay collapsed, but I will be able to restore its original state to the user. I.e. all expanded nodes will be expanded.

Thanks

+3  A: 

Santhosh Kumar is one of my go-to guys for Swing Hacks.

Answer: http://www.javalobby.org/java/forums/t19857.html

Steve Jackson
Mr. Kumar is not a hacker, he's a savior. If he were on SO, my rep would be stuck at -13.
Geoffrey Zheng