This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call fireTreeNodesRemoved  RSS feed

 
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!