Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TreeModel Interface  RSS feed

 
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
 
You can't expect to wield supreme executive power just because
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!