File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MouseEntered & MouseExited code seems not to be working...Problem myself! :D

john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
current listeners:

current code snippet:

The System.out.println code is working. The second thing (timer.stop() and timer.start()) doesn't seem to be.
This is a Pong game. This checks if the ball is in the starting position. If "timer" hasn't been started, it will be in this position. Likewise for mouseExited.

EDIT: Figured it out...Just had to change code to || instead of &&.
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic