File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree Refresh

 
BillyBob Smith
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My JTree is generated by a database query and also fire's events to run other querys but the database changes the values which affect my tree so I have to rebuild it periodically but I have a problem with if a node it selected and I rebuild the tree the tree resets to the state where all nodes are collasped and none selected.....
If Someone has some example code or any help for me ...

I have got the tree path i want to reset it to stores in a var but I cant make it set the selection
Thanks BillyBob
 
Carlos Cuevas
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whoops, this might jut be too late, but i just stteped into your query today, but anyways, here�s what I�ve acomplished when trying to solve the same thing... might work for someone


cheers...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic