This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TreeModel Interface  RSS feed

 
s rao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have custom objects to be put as nodes in a JTree. I am implementing TreeModel Interface but I am not able to achieve insertion/deletion of nodes with it after the JTree has been created.
Is it that if I need to insert or delete a node from JTree then I forcibly should extend DefaultMutableTreeNode and also extend DefaultTreeModel??
Expecting your replies.
S Rao
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!