i need ur help: i want to change the color of text of any node in tree on the base of it's value. i tried it but it changed the color of full tree using default cell renderer by writing UIDefault default =UIManager.getDefaults();default.put("tree.textForeground",new ColorUIResource(Color.red);even i wrote my own cell renderer ; it changed value of any node but on the base of selected or notSelected.PLZ reply me as soon as possible.
please tell rest of us what UI frame work, and which component sets are you using,this looks like SWING to me, is it?