Results 1 to 2 of 2
  1. #1
    Ami
    Ami is offline Member
    Join Date
    Feb 2012
    Posts
    26
    Rep Power
    0

    Default How to get text to be displayed when the mouse hovers over a JCheckBox

    Hi

    I would like some text to be displayed each time the mouse hovers over a JCheckBox. This text would be different for each JCheckBox.

    I can't seem to find a JCheckBox method that does this.

    I'd like to know whether or not there's a way to do this without using a mouse listener or anything like that please.

    Thank you in advance

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: How to get text to be displayed when the mouse hovers over a JCheckBox

    Do you mean like a tool tip? Search the API for the method "setToolTipText(String text)".

Similar Threads

  1. Replies: 3
    Last Post: 03-01-2012, 01:52 PM
  2. Updating text displayed in a Swing Application
    By Fubarable in forum AWT / Swing
    Replies: 1
    Last Post: 09-16-2011, 05:31 AM
  3. Replies: 2
    Last Post: 06-15-2011, 05:52 PM
  4. Replies: 2
    Last Post: 08-08-2010, 08:07 PM
  5. Mouse Listener for mouse floating over object?
    By Krooger in forum AWT / Swing
    Replies: 1
    Last Post: 11-18-2009, 04:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •