If you just want to change your TreeCellRenderer then in your method getTreeCellRenderer...(JTree tree,....) where you return your component there is a boolean passed selected . so all you need is to check the value and if true then call setBackground(Color.blue). This should do it.
Thanks and Regards, Gary Grewal -----Original Message----- From: Fat Black Chicken To: [EMAIL PROTECTED] Sent: 1/10/2002 10:01 PM Subject: How to change an ImageIcon's background-color? Please help, I'm just a beginner. I don't know how to change the background-color of an ImageIcon. (I make a TreeCellRenderer and want to paint my icon blue when selected). Thanks a lot _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing