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 / October 2007

Tip: Looking for answers? Try searching our database.

ToolTip text for JButton

Thread view: 
Chanchal - 23 Oct 2007 10:39 GMT
Hi All,

Is there any way tooltip text of a JButton can be shown always, rather
than it get displayed on mouse over of the JButton

Thanks in advance

Chanchal
Andrew Thompson - 23 Oct 2007 12:21 GMT
...
>Is there any way tooltip text of a JButton can be shown always, rather
>than it get displayed on mouse over of the JButton

Is that a question?  Question marks help mark them
as such.  But, in any case, I hope not.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Thomas Fritsch - 23 Oct 2007 13:03 GMT
Chanchal schrieb:
> Is there any way tooltip text of a JButton can be shown always, rather
> than it get displayed on mouse over of the JButton
Well, when you display the tooltip always, rather than only when the
mouse is over the button, then I wouldn't call it a tooltip anymore.

Quoted from the API doc of method JDocument#setTooltipText: "The text
displays when the cursor lingers over the component."

So, my question is: Why do you want a permanent "tooltip"? May be you
want some kind of JWindow instead.

Signature

Thomas

Roedy Green - 31 Oct 2007 02:04 GMT
On Tue, 23 Oct 2007 02:39:45 -0700, Chanchal
<chanchal.jacob@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>Is there any way tooltip text of a JButton can be shown always, rather
>than it get displayed on mouse over of the JButton

use a JLabel to give the instructions.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



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.