xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Marcano <rob...@marcanoonline.com>
Subject Re: tooltips / Re: MouseEvents do not occur...
Date Mon, 25 Oct 2004 14:52:59 GMT
On Mon, 2004-10-25 at 10:42, Thomas DeWeese wrote:
> Hi Maik,
> 
> Maik Schürer proveo GmbH wrote:
> 
> > but it is the same (no effect) when I use the 'base' classes:
> >    UIManager.put("ToolTip.font", new Font("Arial", Font.PLAIN, 24));
> >    UIManager.put("Tooltip.background", Color.CYAN);
>                          ^
> I just noticed:         +  Not a capital 'T'.
> 
> > what would you suggest to change Font, font color and background color (of
> > the tooltip) ?
> 
>     If the above doesn't fix it (which I think it will), then you could
> subclass the JSVGCanvas and provide a custom 'createToolTip' method.

Or getTooltipText, making it return an HTML formated string like the
accepted by label components

> 
> > ----- Original Message ----- 
> > From: "Thomas DeWeese" <Thomas.DeWeese@Kodak.com>
> > To: "Batik Users" <batik-users@xml.apache.org>
> > Sent: Monday, October 25, 2004 4:13 PM
> > Subject: Re: tooltips / Re: MouseEvents do not occur...
> > 
> > 
> > Hi Maik,
> > 
> >    Well, I'm really not familiar with the UIManager stuff, so
> > this is from quickly looking at the JavaDocs.  the FontUIResource
> > is a derived class from Font, similarly for ColorUIResource.
> > Looking at the UIManager it treats the value differently if it
> > is a 'UIResource' vs if it is the baseclass (Font, Color).
> > 
> >    On first reading it appears that when the value is a UIResource
> > it checks the parent component for the value.  But I could easily
> > be missing something.
> > 

________________________________________
Robert Marcano


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message