I have multiple modules in my Project and I need to decorate these modules with my custom icons which are decided at run-time based on certain conditions.
I am currently using Presentation object(from the AbstractTreeNode) to get the image icon object and I superimpose my image icon using setImage on that icon object retrieved from Presentation object. When I superimpose my icon on any one of the modules, the icon for other module also changes. This is because the ImageIcon object retrieved from Presentation is common or same for all modules under one project.
Is it possible to set different icons for modules under one project? If yes, Can you someone provide me with pointers on how to go about it.
Thanks and Regards,