wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes How do you Refresh a tree view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do you Refresh a tree view " Watch "How do you Refresh a tree view " New topic
Author

How do you Refresh a tree view

bobby, morkos
Ranch Hand

Joined: Jan 04, 2002
Posts: 82
I have a Swing application where I change a tree view on a click of a button, but it does not refresh. Could anynone help?
[ January 16, 2002: Message edited by: bobby, morkos ]
John Smith
Ranch Hand

Joined: Jul 20, 2001
Posts: 84
Try calling tree.repaint()...
Vinod Venugopal
Ranch Hand

Joined: Dec 06, 2000
Posts: 148
Form the new tree & then call tree.updateUI();


- Vinod<br />-------<br />SCJP2
bobby, morkos
Ranch Hand

Joined: Jan 04, 2002
Posts: 82
Do you have an example of a tree view using a function. It must update every time you click a button.

Originally posted by Vinod Venugopal:
Form the new tree & then call tree.updateUI();
 
 
subject: How do you Refresh a tree view