Replacing the UI delegate for a tooltip should be the same as for any
component i.e. :

    UIManager.put("ToolTipUI", "your.ui.Delegate");

Regards

Dave Wathen
Goldman Sachs Asset Management
3rd Floor, Procession House
55 Ludgate Hill
London EC4M 7JN
+44 (0)20-7774-2998

I think I am a verb. (R. Buckminster Fuller)


-----Original Message-----
From: Steve Barrett [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 5:14 AM
To: Samivelu, Srinivasan
Cc: '[EMAIL PROTECTED]'
Subject: RE: how can I change default tooltip component for everything?


Yes, I do that too, but I am wondiering if I can stuff my special
ToolTipUI into the UIManager.getDefaults() table somehow (what is a
lazy instance?).  Then I wouldn't have to override every component I
want to have a multi line tool tip on.

--- "Samivelu, Srinivasan" <[EMAIL PROTECTED]> wrote:
> Dear Steve Barrett,
> 
>       Generally the ToolTip of JComponent uses the ToolTipUI. If u need
> to
> set u r customzied tooltip,
>       probabaly u would have extended the ToolTipUI and created
> customized
> ToolTip supporting multiple lines.
>       In order to set the customized tooltip to the component, the
> following method of JComponent should be overriden.
> 
>       public JTooTip createToolTip()
>       {
>               return (instance of u r customized tooltip)
>       }
> 
>       In my application, I have implemented and its working fine.
> 
> wbr,
> 
> Srinivasan Samivelu
> Software Development Engineer
> 
> BarcoNet Private Limited.
> Mailto:[EMAIL PROTECTED]
> http://www.barconet.com
> 
> 
> 
> -----Original Message-----
> From: Steve Barrett [mailto:[EMAIL PROTECTED]]
> Sent: 21 September 2001 09:11
> To: [EMAIL PROTECTED]
> Subject: how can I change default tooltip component for everything?
> 
> 
> I have a nice tooltip component which supports multiple lines.  I
> am
> sick of overriding every darn component just to use it.  I know
> there
> must be someway of inserting a UI delegate somewhere so that my
> default tooltip component will be the one which supports multiple
> lines (w/o using slow HTML).  Anybody been there, done that?
> 
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing


__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to