aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Unable to retain leaf icon after node editing in JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Unable to retain leaf icon after node editing in JTree" Watch "Unable to retain leaf icon after node editing in JTree" New topic
Author

Unable to retain leaf icon after node editing in JTree

Sudhakar Krishnamurthy
Ranch Hand

Joined: Jun 02, 2003
Posts: 76
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to retain leaf icon after node editing in JTree
 
Similar Threads
JCheckBox in Jtree Problem
JTree help
JTree
JTree Leaf Node Folder
ToolTipText's on each node of JTree