Feras Odeh
Feras Odeh

Reputation: 9306

Reopen JTree after application restart and save its state

How could I save the selected and opened nodes in JTree and reopen it after user restart my Application?

Upvotes: 1

Views: 229

Answers (1)

Sajith
Sajith

Reputation: 2046

We can store the expansion state of JTree and retain it later when required. Check this code example. http://www.javalobby.org/java/forums/t19857.html

Upvotes: 1

Related Questions