Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3123

Re: Problem on getMouseTo

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-xxxfer.readnews.com!textspool1.readnews.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this>
Subject Re: Problem on getMouseTo
Message-ID <foff15$erd$1@aioe.org> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 36
Date Wed, 27 Apr 2011 15:43:03 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918983 96.60.20.240 (Wed, 27 Apr 2011 10:43:03 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:43:03 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:3123

Show key headers only | View raw


  To: comp.lang.java.gui
On 2008-02-07 10:44 +0100, daf allegedly wrote:
> On 7 fov, 09:59, Stanimir Stamenkov <s7a...@netscape.net> wrote:
>> 07.02.2008 10:52, /daf/:
>> 
>>> On 24 jan, 09:39, daf <davfranc...@gmail.com> wrote:
>>>> I have a JPanel, call it panel1, which is composed of an other
>>>> JPanel panel2. panel2 is a final class of librarie I need. The
>>>> problem is, I need to override the getToolTipText of panel2 or
>>>> it is impossible (class is final), so how can I set the
>>>> ToolTipText of panel2 by "catching" event with my panel1 ?
>>> No one can help me ?
>> Does using setToolTipText(String) help?
>> 
>> <http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JComponent.html#s...)>
>> 
>> 
>> -- Stanimir
> 
> No, Because the getToolTipText method is never call. The only
> solution I find, it's to catch mouseMove event and setToolTipText
> manually. That is work, but I would like to have a better solution,
> because this one can reduce performances of our application.

getToolTipText doesn't get called if the tooltip hasn't been set to a
value different than null using setToolTipText(String).

For further information, see:
<http://java.sun.com/docs/books/tutorial/uiswing/components/tooltip.html>

DF.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread


Thread

Re: Problem on getMouseTo "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000

csiph-web