Jump to content

Button + MouseListener?

- - - - -

  • Please log in to reply
No replies to this topic

#1
darkaza

darkaza

    Newbie

  • Members
  • Pip
  • 1 posts
Ok so I have a problem getting a button to work..
I am making a reset button for a bingo program. It works only if the mouselistener is not included. I need the mouselistener for highlighting the numbers on the player's bingo card.
I am thinking that the reset button doesn't work after the mouselistener is added because the mousepressed method is in use and therefore cancelling the function of the button because the mouse is needed to click the button. When the mouselistener is present, I set it up so that when i click a certain area, the x and y coordinate is obtained so that the square on the bingo card can be highlighted.
Help pleeaaase Dx




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users