I think you need to write custom renederer for your JTree.
In the renderer we can set the font of the text based on the value of tree node.

- Bharat

> Hi,
> 
> generally I would use UIManager.put("Tree.font", myFont) to set a font for my
> JTree.
> 
> But which name is to be set if I choose to display html-styled text for my
> nodes ???
> (e.g. "<html><b>bold text</b></html>)
> 
> Reason: the default font does not fit with the standard font Java selects (and
> that is my desired one).
> 
> Many thanks in advance,
> Stefan.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to