I need to change the presentation icons of an AbstractTreeNode. The method abstractTreeNode.getPresentation() returns a new instance of PresentationData everytime and setting the new icons in this will naturally not change the icons of the AbstractTreeNode.
When the myOpenIcon member of the AbstractTreeNode is an instance of RowIcon I am able to change the icon at the first location in the RowIcon to achieve what I need to. But when it is an instance of CachedImageIcon I need to set the myOpenIcon member to a new value.
How can this be done?
I have tried AbstractTreeNode.update() but am not sure how it will pickup the new value.
Edited by: Dhwani Katagade on Apr 17, 2008 3:26 PM