Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call fireTreeNodesRemoved

 
yuechen chen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:

I am a newbie at all this JTree stuff. And right now I'm gravely stuck.

I'm trying to call fireTreeNodesRemoved() when a new node in the tree is removed. and the code for fireTreeNodesRemoved() looks something like this:



To create a new TreeModelEvent I need a field called childIndices, but I'm not sure how that variable is composed. Could someone please please give me some pointers?

Thank you very much,
-Y
 
Pierre Sugar
Ranch Hand
Posts: 62
Java Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!