How can I refresh a JTree when its contents change?

Sandip Chitale

If your tree model is a subclass of

javax.swing.tree.DefaultTreeModel

it is just a matter of calling

((DefaultTreeModel)yourTree.getModel()).reload();
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact