posted 13 years ago
If you are using or extending javax.swing.tree.DefaultTreeModel, invoke fireTreeNodesInserted() on it. That will tell the model that the data has changed and it will fire events off to inform interested parties (i.e. the display). Look at the documentation for other useful event-firing methods.