A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
shiva shankar kn
Joined: Dec 03, 2003
Dec 03, 2003 22:48:00
I need to set different icons for different leafs in a tree. I request you to reply to my question.
Joined: May 10, 2003
Dec 04, 2003 05:16:00
You will have to write a Renderer for the tree. Override the getTreeCellRenderer method to return a
and set the icon of the label returned. Refer to any tutorial on how to set and write a renderer.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
java.lang.OutOfMemoryError: PermGen space
long Vs float/double?
Personality test - If Gandalf had a gf
How to save GUI in XML file and vice versa??
MDA or DSM
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014