网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在脚本:pp.add Event Listener(Mouse Event.CLICK,AA);中,CLICK所代表的是()

  • A、函数名
  • B、实例名
  • C、事件名
  • D、变量名

参考答案

更多 “在脚本:pp.add Event Listener(Mouse Event.CLICK,AA);中,CLICK所代表的是()A、函数名B、实例名C、事件名D、变量名” 相关考题
考题 下列代码中的内部类名是______。import java.awt.event.*;import javax.swing.*;class Talkingclock{public void start (int interval, final boolean beep){ActionListener listener=newActionListener(){public void actionPerformed (ActionEvent event) {......}}Timer t=new Timer(interval, listener);t. start();]}A) TimerB) ActionListenerC) listenerD) 匿名A.B.C.D.

考题 Whichtwotriggersaremousemovementtriggers?() A.When-Mouse-UpB.When-Mouse-MoveC.When-Mouse-DownD.When-Mouse-ClickE.When-Mouse-Leave

考题 在以下程序中,鼠标单击小应用程序的某一点,则会在该点显示一个图标,如果双击,则会清除该图标。且在浏览器的状态栏上会显示鼠标单击位置的坐标。运行结果如下图所示。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。注意:不改动程序的结构,不是增行或删行。import java.applet.*;import java.awt.*;import java.awt.event.*;public class Example3_1 extends Applet{int xPoint, yPoint;int sum;Image displayIm;public void init(){displayIm = getImage("ms.jpg");addMouseListener(new SClickMouse()) ;sum = 2;}public void paint(Graphics g){if(sum == 1)g.drawImage(displayIm, xPoint, yPoint, this);elseg.fillRect(xPoint, yPoint, 60, 60);}public class SClickMouse implements MouseListener{public void mouseClicked(MouseEvent mouse){sum = mouse.getClickCount();xPoint = mouse.getX();yPoint = mouse.getY();paint();}public void mouseEntered(MouseEvent mouse){}public void mouseExited(MouseEvent mouse){}public void mousePressed(MouseEvent mouse){xPoint = mouse.getX();yPoint = mouse.getY();showStatus("x="+xPoint+",y-"+yPoint);}public void mouseReleased(MouseEvent mouse)}}}}Exampie3_1.html:<html><head><title>Example3_1</title></head><body><applet code="Example3_1.class" width="400" height="500"></applet></body></html>

考题 下列代码中的内部类名是( )。 import java.awt.event.*; lapoct javax.swin9.*; class TalkingClock( public void start(int interval,final boolean beep){ ActionListener listener=new ActionListener{ public void actionPerformed(ActionEvent e- vent){ … } } Timer t=new Timer(interval,listener); start; } }A.TimerB.ActionListenerC.1istenerD.匿名

考题 下列为窗口事件的是( )。A.Mouse EventB.Window EventC.Action Event 下列为窗口事件的是( )。A.Mouse EventB.Window EventC.Action EventD.Key Event

考题 用鼠标单击菜单项(Menultem)产生的事件是( )。A.Menu EventB.Action EventC.Key EventD.Mouse Event

考题 Giventhefollowingsixmethodnames:add Listeneradd Mouse Listenerset Mouse Listenerdelete Mouse Listenerremove Mouse Listenerregister Mouse ListenerHowmanyofthesemethodnamesfollowJavaBeanListenernamingrules?()A.1B.2C.3D.4

考题 Which of the following is an advantage that a USB mouse has over a PS/2 mouse?()A、A USB mouse uses less powerB、A USB mouse is more portableC、A USB mouse is hot swappableD、A USB mouse is more secure

考题 下列Java常见事件类中,属于窗体事件类的是()。A、Input EventB、Window EventC、Mouse EventD、Key Event

考题 How can you create a listener class that receives events when the mouse is moved?()  A、 By extending MouseListener.B、 By implementing MouseListener.C、 By extending MouseMotionListener.D、 By implementing MouseMotionListener.E、 Either by extending MouseMotionListener or extending MouseListener.F、 Either by implementing MouseMotion Listener or implementing MouseListener.

考题 Given the following six method names: add Listener add Mouse Listener set Mouse Listener delete Mouse Listener remove Mouse Listener register Mouse Listener How many of these method names follow JavaBean Listener naming rules?()A、1B、2C、3D、4

考题 Which two are examples of a mouse event?()A、The user clicks the mouse. B、The user moves the mouse into an item. C、The cursor style changes from default to busy. D、The user moves the mouse into the window title bar.

考题 Which two triggers are mouse movement triggers?()A、When-Mouse-Up B、When-Mouse-Move C、When-Mouse-DownD、When-Mouse-Click E、When-Mouse-Leave  

考题 Which statement is true about mouse events? ()A、The cursor style can be set to CAUTION. B、Double-clicking a mouse button can potentially fire six mouse event triggers. C、The values for the SYSTEM.MOUSE_BUTTON_PRESSED system variable can only be 1 or 2. D、Click and double-click button actions can only detect if the mouse is positioned in an item.

考题 You issue these LSNRCTL commands:  LSNRCTL SET CURRENT_LISTENER listener01 LSNRCTL START listener02  What is the result of issuing these commands?()A、A listener named LISTENER is started.B、A listener named LISTENER01 is started.C、A listener named LISTENER02 is started.D、The START command fails and no listener is started.

考题 You are developing an application that receives events asynchronously.You create a WqlEventQuery instance to specify the events and event conditions to which the application must respond.You also create a ManagementEventWatcher instance to subscribe to events matching the query.You need to identify the other actions you must perform before the application can receive events asynchronously.Which two actions should you perform?()A、Start listening for events by calling the Start method of the ManagementEventWatcher.B、Set up a listener for events by using the EventArrived event of the ManagementEventWatcher.C、Use the WaitForNextEvent method of the ManagementEventWatcher to wait for the events.D、Create an event handler class that has a method that receives an ObjectReadyEventArgs parameter.E、Set up a listener for events by using the Stopped event of the ManagementEventWatcher.

考题 Which statements concerning the event model of the AWT are true?()  A、At most one listener of each type can be registered with a component.B、Mouse motion listeners can be registered on a List instance.C、There exists a class named ContainerEvent in package java.awt.event.D、There exists a class named MouseMotionEvent in package java.awt.event.E、There exists a class named ActionAdapter in package java.awt.event.

考题 单选题Which statement is true about mouse events? ()A The cursor style can be set to CAUTION. B Double-clicking a mouse button can potentially fire six mouse event triggers. C The values for the SYSTEM.MOUSE_BUTTON_PRESSED system variable can only be 1 or 2. D Click and double-click button actions can only detect if the mouse is positioned in an item.

考题 单选题Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()A Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.B Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.C Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.D Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

考题 多选题Which statements concerning the event model of the AWT are true?()AAt most one listener of each type can be registered with a component.BMouse motion listeners can be registered on a List instance.CThere exists a class named ContainerEvent in package java.awt.event.DThere exists a class named MouseMotionEvent in package java.awt.event.EThere exists a class named ActionAdapter in package java.awt.event.

考题 单选题How can you create a listener class that receives events when the mouse is moved?()A  By extending MouseListener.B  By implementing MouseListener.C  By extending MouseMotionListener.D  By implementing MouseMotionListener.E  Either by extending MouseMotionListener or extending MouseListener.F  Either by implementing MouseMotion Listener or implementing MouseListener.

考题 多选题Which two are examples of a mouse event?()AThe user clicks the mouse.BThe user moves the mouse into an item.CThe cursor style changes from default to busy.DThe user moves the mouse into the window title bar.

考题 单选题Development of real-time event-driven applications using Coherence is supported b()A  the Partitioned CacheB  the Local CacheC  the Map Listener running within a Partitioned CacheD  the Map Listener running within an application 

考题 多选题Which two triggers are mouse movement triggers?()AWhen-Mouse-UpBWhen-Mouse-MoveCWhen-Mouse-DownDWhen-Mouse-ClickEWhen-Mouse-Leave

考题 单选题Which of the following is an advantage that a USB mouse has over a PS/2 mouse?()A A USB mouse uses less powerB A USB mouse is more portableC A USB mouse is hot swappableD A USB mouse is more secure

考题 单选题下列代码中的内部类名是(  )。import java.awt.event.*; import javax.swing.*; class TalkingClock{ public void start(int interval,final boolean beep){ ActionListener listener=new ActionListener(){ public void actionPerformed(ActionEvent event){ …… } } Timer t=new Timer(interval,listener); t.start(); } }A TimerB ActionListenerC listenerD 匿名

考题 单选题Given the following six method names: add Listener add Mouse Listener set Mouse Listener delete Mouse Listener remove Mouse Listener register Mouse Listener How many of these method names follow JavaBean Listener naming rules?()A 1B 2C 3D 4