Win a copy of Kotlin in Action this week in the Kotlin 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!