Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ToolTip text for JButton

5 views
Skip to first unread message

Chanchal

unread,
Oct 23, 2007, 5:39:45 AM10/23/07
to
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

unread,
Oct 23, 2007, 7:21:02 AM10/23/07
to
Chanchal wrote:
..

>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.

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200710/1

Thomas Fritsch

unread,
Oct 23, 2007, 8:03:05 AM10/23/07
to
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.

--
Thomas

Roedy Green

unread,
Oct 30, 2007, 9:04:29 PM10/30/07
to
On Tue, 23 Oct 2007 02:39:45 -0700, Chanchal
<chancha...@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.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

0 new messages