This is the exact answer.  There is a working example that was put out late
last year.  Go to DejaNews and search in the comp.lang.java* forums for
MultiLineLabelUI.

john

On 18-May-99 gaolei wrote:
> Hi, there,
> 
> For the html support, we now only could wait, but I think we really
> could do something now.
> 
> For such type questions, I believe they have a same answer: modifying
> the xxxxUI class, if we want some visual component looks different from
> standard one but with the same or a little bit different behavior.
> 
> So for tooltip, I THINK you could inherit from BasicTooltipUI(I just
> assumed), and override the paint function. Really not difficult.
> 
> For the usage, instantiate a JTooltip object and setUI( yourOwnUI );
> Such way, I believe you could get any look and feel what you want.
> Also, this point is one of the most charming feature of Java GUI.
> 
> My suggestion.
> Gao Lei.
> 
> 
> 
> Paul Michael Reilly wrote:
> 
>> Zhichao Hong writes:
>>  > Hi,
>>  >
>>  > I am wondering is that possible to create Mutiple line tooltips.  By
>>  > default, the swing is only able to display single line tooltips.
>>  >
>>  >
>>  > Any idea is much appreciated.
>>
>> I saw that JLabel and JText support a <html> prefix followed by HTML
>> modifiers in the string they are rendering.  I suspect this works for
>> tooltips too.  It is documented in the Swing 1.1 beta2 release.  I
>> don't know if it is in JDK 1.2.1 yet.  I think not.  No doubt someone
>> will cheerfully correct me if I'm wrong. :-)
>>
>> -pmr
>>
>> ----------------------------------------------------------------------
>> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

----------------------------------
E-Mail: John N. Alegre <[EMAIL PROTECTED]>
Date: 13-Jun-99
Time: 18:52:33

This message was sent by XFMail
----------------------------------


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to