View Single Post
  #1 (permalink)  
Old 05-17-2007, 10:14 PM
sandor sandor is offline
Member
 
Join Date: Apr 2007
Location: Pennsylvania,USA
Posts: 46
sandor is on a distinguished road
Mouse over JButton
I have an 10 x 10 array of JButtons in my project. I was just wondering how do i find out which button the mouse cursor is over at any given time?
I have tried adding the following to the buttons:
Code:
b.addMouseMotionListener(new MouseMovingHandler()); b.addMouseListener(new MouseHandler());
Reply With Quote
Sponsored Links