Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

help regarding change color of tree node

  Asked By: Hondo    Date: Nov 23    Category: Java    Views: 1673
  

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.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Vidhya Iyer     Answered On: Nov 23

please tell rest of us what UI frame work, and which component sets are you using,
this looks like SWING to me, is it?

 
Didn't find what you were looking for? Find more on help regarding change color of tree node Or get search suggestion and latest updates.




Tagged: