Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MouseAdapter not working?  RSS feed

 
Jake Cirino
Greenhorn
Posts: 17
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys, I'm trying to make a button for my game so that when you hover over it, it changes color. But my code isn't even recognizing mouse movement.

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> But my code isn't even recognizing mouse movement.

the mouseMoved you want is part of MouseMotionAdapter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!