How to use renderer for a Jtree Element

Hi all,

i have been told to use Renderer for drawing a JTree on a JPanel.

I mean, i want to draw each element of the JTree as a rectangle with a label inside it.....each element of my JTree contains an UserObject with a string inside it.

Any suggestions ?

Cheers.

Stefano

[308 byte] By [warxsga] at [2007-11-27 10:41:03]
# 1

read the link below it shows how to use trees and tree renderer.

http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

Yannixa at 2007-7-28 19:10:27 > top of Java-index,Desktop,Core GUI APIs...