Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse event listeners

Status
Not open for further replies.

jeremytaffy

Technical User
Sep 6, 2001
75
US
I'm trying to make a program using Swing which has a check box. I want to be able to put the mouse arrow over the box and have a brief description of what the check box is for appear. From what I understand I need to use a mouse listener to check if the arrow enters the box yet I don't know how to implement it in a program. If someone could give me a short and simple example and/or explanation I'd appreciate it.
J
 
Hi,
u can use checkbox.setToolTipText(&quot;<what you want>&quot;);
that does what you wanted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top