• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to retain leaf icon after node editing in JTree  RSS feed

 
Sudhakar Krishnamurthy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys:
Here's my problem, I am trying to edit a JTree node name with customized icons. But as soon as i finish editing the customized icon is being replaced with the default leaf icon

I am using extending my CellEditor class from DefaultTreeCellEditor and providing it my own renderer extended from DefaultTreeCellRenderer. In my cell editor class i've overridden the "determineOffset" function.
Any help is appreciated....
TIA
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!