I\'ve written a custom TreeCellRenderer in order to change a components appearance. Everything works fine, except that setBackground has no effect. The code is
setBackground
Try adding a call to c.setOpaque(true).
c.setOpaque(true)