Hi all,

I've been struggling with a Swing issue for days now, maybe someone can help me :)
I would like to see several icons at the left hand side of a JTree element. Is that possible? I mean i know that I have to create some tricky cell renderer class, but how do i make it accept a list of images?

Thanks in advance,
Tamas

Just some more details;
I've overwritten the cell renderer, it displays the stuff with all the images I need. Is there any way that on a certain event I remove one of the images? Like someone is disconnected and I show a different icon for them?

thanks

If the cell renderer is making the check to determine which icon(s) to show, you can probably just call repaint() on the panel that contains the JTree.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.