Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to dynamically add Nodes to JTree?

Status
Not open for further replies.

Joncamp

MIS
Oct 30, 2006
15
US
I can add nodes to my JTree, but after expanding a node, I can not add any child nodes to that node, or at least they dont show on the screen? Actually I can use the .add(new DefaultMutableTreeNode("Label")); to add a node to a parent node, but the new child node doesn't show on the display of the JTree?

Any help appreciated,
Jon
 
Can you repost this in the Java forum please (forum269). This forum is for J2EE questions, and Swing is definitely not that.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top