Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Refreshing JTree  RSS feed

 
Travis Kline
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am using a default tree model with custom tree nodes to represent some data objects. These data objects are constantly changing and I do not always know which one the user is currently working with. DefaultTreeModel.nodeChanged(myNode) works nicely on an individual basis but I need something that will refresh the entire tree. DefaultTreeModel.reload() works but I lose the expanded tree path. Any suggestions? Thanks.....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!