Results 1 to 3 of 3
  1. #1
    corrax is offline Member
    Join Date
    Apr 2011
    Posts
    13
    Rep Power
    0

    Default Need help finding mouseMoved on a JButton

    How am I supposed to find if the mouse has moved on a JButton? I tried implementing MouseMotionListener and using mouseMoved, but when i hover over the JButton, or any Swing component, it doesn't work. Any help?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    To get better help sooner, post a SSCCE that clearly demonstrates your problem.

    db

    edit Chances are you forgot to add the MouseMotionListener to the component.

  3. #3
    corrax is offline Member
    Join Date
    Apr 2011
    Posts
    13
    Rep Power
    0

    Default

    @DB, thats exactly right... *sigh*. I just figured this out right now before I saw your post. Thanks for the help anyway.

Similar Threads

  1. Finding totals - HELP!!
    By mikeg in forum New To Java
    Replies: 20
    Last Post: 11-19-2010, 05:37 PM
  2. finding max value
    By rocky86 in forum New To Java
    Replies: 6
    Last Post: 10-10-2010, 01:37 AM
  3. Ip address finding
    By anilkumar_vist in forum New To Java
    Replies: 6
    Last Post: 04-10-2010, 03:06 AM
  4. Finding largest no
    By bugger in forum New To Java
    Replies: 11
    Last Post: 11-29-2007, 12:49 PM
  5. Finding GCF in java
    By lenny in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2007, 05:41 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
  •