Hi Bharat,

no, i do not think so because I rely on the HTML-Feature of Swing. Any component can
display HTML formatted text. Therefore I need a way to set the font in which html
styled text is displayed.

Regards,
Stefan.

Bharat Dighe wrote:

> 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