Welcome to Dream.In.Code
Getting Java Help is Easy!

Join 136,305 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 2,455 people online right now. Registration is fast and FREE... Join Now!




setToolTipText

 
Reply to this topicStart new topic

setToolTipText, how to use this method?

ailaine
15 Oct, 2008 - 03:58 AM
Post #1

New D.I.C Head
*

Joined: 4 Oct, 2008
Posts: 4

help..

just wonderin' how to use this method in my program..hhmmm?

I just can't find any relevant examples 'bout setToolTipText crazy.gif
User is offlineProfile CardPM
+Quote Post

Jayman
RE: SetToolTipText
15 Oct, 2008 - 01:51 PM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,926



Thanked: 42 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
Which component is this a property of?
User is offlineProfile CardPM
+Quote Post

pbl
RE: SetToolTipText
15 Oct, 2008 - 02:00 PM
Post #3

D.I.C Lover
Group Icon

Joined: 6 Mar, 2008
Posts: 3,110



Thanked: 202 times
Dream Kudos: 75
My Contributions
JLabel label;
label.setToolTipText("This text will be displayed when the mouse will pass over this component");
User is offlineProfile CardPM
+Quote Post

ailaine
RE: SetToolTipText
15 Oct, 2008 - 06:29 PM
Post #4

New D.I.C Head
*

Joined: 4 Oct, 2008
Posts: 4

QUOTE(jayman9 @ 15 Oct, 2008 - 02:51 PM) *

Which component is this a property of?

========

it's the JButton..thanks for whatever help you may give!
========


QUOTE(pbl @ 15 Oct, 2008 - 03:00 PM) *

JLabel label;
label.setToolTipText("This text will be displayed when the mouse will pass over this component");

=======
thanks pbl..!
but am lookin' for the JBbutton component settooltiptext..is the syntax the same?

User is offlineProfile CardPM
+Quote Post

pbl
RE: SetToolTipText
15 Oct, 2008 - 06:32 PM
Post #5

D.I.C Lover
Group Icon

Joined: 6 Mar, 2008
Posts: 3,110



Thanked: 202 times
Dream Kudos: 75
My Contributions
QUOTE(ailaine @ 15 Oct, 2008 - 07:29 PM) *

JLabel label;
label.setToolTipText("This text will be displayed when the mouse will pass over this component");

=======
thanks pbl..!
but am lookin' for the JBbutton component settooltiptext..is the syntax the same?


Exactly the same for all JComponent so

JButton button;
button.setToolTipText("This text will be displayed when the mouse will pass over this JButton");

will work

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 06:32AM

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month