You can click on a Button (ActionEvent). And You can move your mouse on a Container such as Panel (Applet is a kind of Panel), Frame, Window.

jabber (jabber)
Dear OldSix,

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.
2000-10-23 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: java problem

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论