This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
Hai, I need to set different icons for different leafs in a tree. I request you to reply to my question.
posted 12 years ago
Hi, You will have to write a Renderer for the tree. Override the getTreeCellRenderer method to return a JLabel and set the icon of the label returned. Refer to any tutorial on how to set and write a renderer.