This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.