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


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

Re: Problem on getMouseTo

From "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this>
Subject Re: Problem on getMouseTo
Message-ID <foff15$erd$1@aioe.org> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:43 +0000
Organization TDS.net

Show all headers | 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