Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtree handles nodeClick when adding items?  RSS feed

 
Anthony Yulo
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two JTrees in my Swing application...
the logic of my application is when i delete a node on the first tree, it would be added to the second tree by the second tree's model and then calling the model's insertInto() function... Now when the node is inserted into the second tree it seems that the nodeClicked event of the second tree is generated which would have catastrophic effects on my program...
I'm wondering if my assessment that nodeClick() event is generated when adding nodes into the tree... ? how could i bypass the nodeclick event when adding a node
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!