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" Subject: Re: Problem on getMouseTo Message-ID: 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 To: comp.lang.java.gui On 2008-02-07 10:44 +0100, daf allegedly wrote: > On 7 fov, 09:59, Stanimir Stamenkov wrote: >> 07.02.2008 10:52, /daf/: >> >>> On 24 jan, 09:39, daf 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? >> >> >> >> >> -- 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: 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