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

回到话题: java problem

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论