Moving a mouse on a Button is not a meaning event. So you should not add
a MouseMotionListener to the Jbutton.
Instead, you should add an ActionListener.
For a Container such as Applet, you can add a MouseMotionListener.
Hope it helps you.
This post has been archived. It cannot be replied.