🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by Jacques Chaurette Fri, 28 Oct 2005 21:31
cannot use variable in tool tip text
#405
Author: Jacques Chaurette
Date: Fri, 28 Oct 2005 21:31
9 lines
1087 bytes
I would like to use a variable in tool tip text such as:
jLabelROI2.setToolTipText("hello"+labelName.getText());

Is there another way to do this?

Thanks.


Jacques 
Re: cannot use variable in tool tip text
#406
Author: Paul Furbacher [TeamB]
Date: Fri, 28 Oct 2005 22:17
30 lines
1852 bytes
Jacques Chaurette wrote:

> I would like to use a variable in tool tip text such as:
> jLabelROI2.setToolTipText("hello"+labelName.getText());
> 
> Is there another way to do this?

Override the "getToolTipText()" method to capture
info from your variable.  Or add some kind of
listener (change listener, or something) to the
label which responds to changes by taking the
value handed it to update the tooltip.  You may
have to use your imagination on how to do the
latter.


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://info.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads