Article View: borland.public.jbuilder.java.swing
Article #406Re: cannot use variable in tool tip text
From: Paul Furbacher [TeamB]
Date: Fri, 28 Oct 2005 22:17
Date: Fri, 28 Oct 2005 22:17
30 lines
1852 bytes
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.
Technical Details
Message-ID:
<4362a363$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<436298bc@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,385588d14905cea8 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 28 Oct 2005 18:17:07 -0400 From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com> Organization: Reverse Alchemy, Inc. User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: cannot use variable in tool tip text References: <436298bc@newsgroups.borland.com> In-Reply-To: <436298bc@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.142.194.228 Message-ID: <4362a363$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130537827 69.142.194.228 (28 Oct 2005 15:17:07 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail