JTree not showing plus/minus signs

Hi,

I'm having a strange problem with JTree when implementing my own DefaultTreeCellRenderer: the renderer is shown correctly, but the plus and minus signs are gone!

My getTreeCellRendererComponent implementation actually creates a new JPanel and returns it instead of the default one. Can that be the problem? How can I make these plus/minus signs come back?

Thanks, U

[395 byte] By [annauzia] at [2007-11-27 10:26:54]
# 1

> of the default one. Can that be the problem? How can

> I make these plus/minus signs come back?

Yes that is the problem. I have seen this myself.

tjacobs01a at 2007-7-28 17:42:16 > top of Java-index,Desktop,Core GUI APIs...