为按钮“butt1”添加鼠标点击事件侦听语句,并执行playmovie函数,这段代码正确的是
A: butt1.addEventListener(MouseEvent.CLICK,playmovie);
B: butt1.addEventListener(MouseEvent.MOUSE_DOWN,playmovie);
C: butt1.addEventListener(MouseEvent.MOUSE_ UP,playmovie);
D: butt1.addEventListener(MouseEvent.MOUSE_OUT,playmovie);
A: butt1.addEventListener(MouseEvent.CLICK,playmovie);
B: butt1.addEventListener(MouseEvent.MOUSE_DOWN,playmovie);
C: butt1.addEventListener(MouseEvent.MOUSE_ UP,playmovie);
D: butt1.addEventListener(MouseEvent.MOUSE_OUT,playmovie);
举一反三
- The main butt of satire in Bleak House is aimed at the abuses of the English .
- 1在组件上单击(按下鼠标并释放)时,会调用的鼠标处理方法是() A: mouseReleased(MouseEvente) B: mouseClicked(MouseEvent e) C: mouseEntered(MouseEvent e) D: mouseReleased(MouseEvente)
- 传递给实现了java.awt.event.MouseMotionListener接口的类中mouseDragged()方法的事件对象是( ) A: Mouse B: MouseEvent C: MouseMotionEvent D: EventMouse
- 当鼠标进入应用程序的窗口时,所调用的鼠标事件的方法是() A: public void mouseEntered( MouseEvent ) B: public void mousePressed( MouseEvent ) C: public void mouseMoved( MouseEvent ) D: public void mouseExited( MouseEvent )
- MouseEvent类用于表示鼠标事件( )