Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2008

Tip: Looking for answers? Try searching our database.

Problem on getMouseToolTipText

Thread view: 
daf - 24 Jan 2008 08:39 GMT
Hi,

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 ?

thanks
daf - 07 Feb 2008 08:52 GMT
> Hi,
>
[quoted text clipped - 7 lines]
>
> thanks

No one can help me ?
Stanimir Stamenkov - 07 Feb 2008 08:59 GMT
07.02.2008 10:52, /daf/:

>> I have a JPanel, call it panel1, which is composed of an other JPanel
>> panel2.
[quoted text clipped - 5 lines]
>
> No one can help me ?

Does using setToolTipText(String) help?

<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JComponent.html#setToolTipTe
xt(java.lang.String
)>

Signature

Stanimir

daf - 07 Feb 2008 09:44 GMT
> 07.02.2008 10:52, /daf/:
>
[quoted text clipped - 14 lines]
> --
> 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.
Daniele Futtorovic - 07 Feb 2008 17:27 GMT
>> 07.02.2008 10:52, /daf/:
>>
[quoted text clipped - 14 lines]
> 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.
Daniel Pitts - 07 Feb 2008 17:49 GMT
>> 07.02.2008 10:52, /daf/:
>>
[quoted text clipped - 18 lines]
> That is work, but I would like to have a better solution, because this
> one can reduce performances of our application.

Actually, that is how tooltips work.

Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

daf - 11 Feb 2008 10:34 GMT
On 7 fév, 18:49, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.net> wrote:
> >> 07.02.2008 10:52, /daf/:
>
[quoted text clipped - 23 lines]
> --
> Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

Hi,

When I initialize my panel I do a setToolTip("");
But the getToolTip of my children is not called by the system
Daniel Pitts - 11 Feb 2008 15:28 GMT
> On 7 fév, 18:49, Daniel Pitts
> <newsgroup.spamfil...@virtualinfinity.net> wrote:
[quoted text clipped - 25 lines]
> When I initialize my panel I do a setToolTip("");
> But the getToolTip of my children is not called by the system
getToolTip isn't used most of the time.  the code in setToolTip fires an
event that notifies Swing that it should do a pop-up.

Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.