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