Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Icon change while editing tree node  RSS feed

 
Raja Kannappan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTree in our application. Each of the nodes in the tree have an icon associated with it. It works fine normally. But, When I try editing the value of the node in the tree, the tree icon changes for leaf nodes. However, when I try to edit non-leaf node, the icon does not change. I don't want the icon to change while editing a leaf node. Does anyone have any idea on how to prevent this?

Thanks,

- Raja.
[ May 10, 2005: Message edited by: Raja Kannappan ]
 
Raja Kannappan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have any idea on this?
[ May 20, 2005: Message edited by: Raja Kannappan ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!