控制当访问者将鼠标指针移动到指定的图片时,下列哪个显示指定层上图片的行为()A、on Mouse OverB、on Mouse OutC、on Mouse UprD、on Mouse Down
控制当访问者将鼠标指针移动到指定的图片时,下列哪个显示指定层上图片的行为()
- A、on Mouse Over
- B、on Mouse Out
- C、on Mouse Upr
- D、on Mouse Down
相关考题:
从供选择的答案中选出应填入英语文句中()的正确的答案。Toolboxes and menus in many application programs were (A) for working with the mouse. The mouse controls a pointer on the screen. You move the pointer by (B) the mouse over a flat surface in the direction you want the pointer to move. If you run out of (C) to move the mouse, lift it up and put it down again. The pointer moves only when the mouse is (D) the flat surface. Moving the mouse pointer across the screen does not affect the document, the pointer simply (E) a location on the screen. When you press the mouse button, something happens at the location of the pointer.A: ① assigned ② designed ③ desired ④ expressedB: ① putting ② sliding ③ serving ④ takingC: ① board ② place ③ room ④ tableD: ① getting ② going ③ teaching ④ touchingE: ① constructs ② indicates ③ instructs ④ processes
下面的Applet程序通过内部类处理鼠标单击事件。在小程序中,如果点击鼠标,则在状态栏输出鼠标点击的坐标;如果双击鼠标,则显示一副图片,鼠标单击处为显示图片的左上角坐标,显示图片的宽度为200像素,高度为180像素。请改正程序中的错误(有下划线的语句),使程序执行后,能得到预期的结果。注意:不改动程序的结构,不得增行或删行。程序的执行结果为:import java.applet.*;import java.awt.*;import java.awt.event.*;/*<applet code=Hua width=200 height=100></applet>*/public class Hua extends Applet{int xPos,yPos;int sum;Image pic;public void init(){addMouseListener(new ClickMouse());}public void paint(Graphics g){if(sum==2){g.drawImage(pic,xPos,yPos,200,180,super);}}public class ClickMouse extends MouseAdapter{public void mouseClicked (MouseEvent mouse){sum=mouse.getClickCount();if(sum==2){pic=getImage(getAudioClip(),"hua.jpg");xPos=mouse.getX();yPos=mouse.getY ( );showStatus ("鼠标单击点的坐标: ("+mouse. getX ( ) +" , "+mouse. getY ( ) + ")" );}paint ( );}}}ex37_3.html:<html><head><title>A Simple Program</title></head><body><applet code=" Hua.class" width=800 height=400></applet></body></html>
Whichtwostatementsaretrueaboutmousebuttonvariables?() A.SYSTEM.MOUSE_BUTTON_PRESSEDreturnsastring.B.SYSTEM.MOUSE_BUTTON_PRESSEDreturnsanumericvalue.1Z0-132WorldLeadersIn CertificationsMaterial-Test-king.comC.ApossiblevalueforSYSTEM.MOUSE_BUTTON_MODIFIERSisControl+Alt+Delete.D.SYSTEM.MOUSE_BUTTON_MODIFIERScanonlybereferencesinform-leveltriggers.E.SYSTEM.MOUSE_BUTTON_MODIFIERSidentifieswhichspecialkeywaspressedinconjunctionwiththeusualmousebuttonaction.
Whichtwotriggersaremousemovementtriggers?() A.When-Mouse-UpB.When-Mouse-MoveC.When-Mouse-DownD.When-Mouse-ClickE.When-Mouse-Leave
Giventhefollowingsixmethodnames:add Listeneradd Mouse Listenerset Mouse Listenerdelete Mouse Listenerremove Mouse Listenerregister Mouse ListenerHowmanyofthesemethodnamesfollowJavaBeanListenernamingrules?()A.1B.2C.3D.4
共用题干Computer MouseThe basic computer mouse is an amazingly clever invention with a relatively simple design that allows us to point at things on the computer and it is very productive.Think of all the things you can do with a mouse like selecting text for copying and pasting,drawing,and even scrolling on the page with the newer mice with the wheel. Most of us use the computer mouse daily without stopping to think how it works until it gets dirty and we have to learn how to clean it. We learn to point at thing before we learn to speak,so the mouse is a very natural pointing device.Other computer pointing devices include light pens,graphics tablets and touch screen,but the mouse is still our workhorse.The computer mouse was invented in 1964 by Douglas Englehart of Stanford University.As computer screens became popular and arrow keys were used to more around a body of text,it became clear that a pointing device that allowed easier motion through the text and even selection of text would be very useful.The introduction of the mouse,with the Apple Lisa computer in 1983,really started the computer public on the road to relying on the mouse for routine computer tasks.How does the mouse work?We have to start at the bottom,so think upside down for now. It all starts with mouse ball. As the mouse ball in the bottom of the mouse rolls over the mouse pad,it presses against and turns two shafts.The shafts are connected to wheels with several small holes in them. The wheels have a pair of small electronic light-emitting devices called light emitting diodes (LED)mounted on either side.One LED sends a light beam to the LED on the other side.As the wheels spin and a hole rotates by,the light beam gets through to the LED on the other side.But a moment later the light beam is blocked until the next hole is in place.The LED detects a changing pattern of light,converts the pattern into an electronic signal,and sends the signal to the computer through wires in a cable that goes out the mouse body.This cable is the tail that helps give the mouse its name.The computer interprets the signal to tell it where to position the cursor on the computer screen.So far we have only discussed the basic computer mouse that most of you probably have or have used.One problem with this design is that the mouse gets dirty as the ball rolls over the surface and picks up the dirt. Eventually you have to clean your mouse. The newer optical mice avoid this problem by having no moving parts.When an ordinary computer mouse gets dirty,it has to be replaced with a new one.A:Right B:Wrong C:Not mentioned
共用题干Computer MouseThe basic computer mouse is an amazingly clever invention with a relatively simple design that allows us to point at things on the computer and it is very productive.Think of all the things you can do with a mouse like selecting text for copying and pasting,drawing,and even scrolling on the page with the newer mice with the wheel. Most of us use the computer mouse daily without stopping to think how it works until it gets dirty and we have to learn how to clean it. We learn to point at thing before we learn to speak,so the mouse is a very natural pointing device.Other computer pointing devices include light pens,graphics tablets and touch screen,but the mouse is still our workhorse.The computer mouse was invented in 1964 by Douglas Englehart of Stanford University.As computer screens became popular and arrow keys were used to more around a body of text,it became clear that a pointing device that allowed easier motion through the text and even selection of text would be very useful.The introduction of the mouse,with the Apple Lisa computer in 1983,really started the computer public on the road to relying on the mouse for routine computer tasks.How does the mouse work?We have to start at the bottom,so think upside down for now. It all starts with mouse ball. As the mouse ball in the bottom of the mouse rolls over the mouse pad,it presses against and turns two shafts.The shafts are connected to wheels with several small holes in them. The wheels have a pair of small electronic light-emitting devices called light emitting diodes (LED)mounted on either side.One LED sends a light beam to the LED on the other side.As the wheels spin and a hole rotates by,the light beam gets through to the LED on the other side.But a moment later the light beam is blocked until the next hole is in place.The LED detects a changing pattern of light,converts the pattern into an electronic signal,and sends the signal to the computer through wires in a cable that goes out the mouse body.This cable is the tail that helps give the mouse its name.The computer interprets the signal to tell it where to position the cursor on the computer screen.So far we have only discussed the basic computer mouse that most of you probably have or have used.One problem with this design is that the mouse gets dirty as the ball rolls over the surface and picks up the dirt. Eventually you have to clean your mouse. The newer optical mice avoid this problem by having no moving parts.The computer mouse derives its name from the cable that goes out its body,which looks like the tail of a mouse.A:Right B:Wrong C:Not mentioned
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
A user states that they unplugged their mouse to clean the roller ball, but after plugging it back in the mouse no longer functions. Which of the following is the MOST likely cause of this issue?()A、The mouse has a PS/2 connector which is not hot-swappable.B、The mouse roller ball is now too smooth to gain traction.C、The mouse was broken before the user unplugged to clean it.D、The mouse has a USB connector that is not getting enough power.
Which two statements are true about mouse button variables?()A、SYSTEM.MOUSE_BUTTON_PRESSED returns a string. B、SYSTEM.MOUSE_BUTTON_PRESSED returns a numeric value. 1Z0-132 World Leaders In Certifications Material - Test-king.com C、A possible value for SYSTEM.MOUSE_BUTTON_MODIFIERS is Control+Alt+Delete. D、SYSTEM.MOUSE_BUTTON_MODIFIERS can only be references in form-level triggers. E、SYSTEM.MOUSE_BUTTON_MODIFIERS identifies which special key was pressed in conjunction with the usual mouse button action.
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.
单选题Which statement is true about mouse events? ()AThe cursor style can be set to CAUTION. BDouble-clicking a mouse button can potentially fire six mouse event triggers. CThe values for the SYSTEM.MOUSE_BUTTON_PRESSED system variable can only be 1 or 2. DClick and double-click button actions can only detect if the mouse is positioned in an item.
单选题A user states that they unplugged their mouse to clean the roller ball, but after plugging it back in the mouse no longer functions. Which of the following is the MOST likely cause of this issue?()AThe mouse has a PS/2 connector which is not hot-swappable.BThe mouse roller ball is now too smooth to gain traction.CThe mouse was broken before the user unplugged to clean it.DThe mouse has a USB connector that is not getting enough power.
多选题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.
单选题Which of the following is an advantage that a USB mouse has over a PS/2 mouse?()AA USB mouse uses less powerBA USB mouse is more portableCA USB mouse is hot swappableDA USB mouse is more secure
多选题Which two triggers are mouse movement triggers?()AWhen-Mouse-UpBWhen-Mouse-MoveCWhen-Mouse-DownDWhen-Mouse-ClickEWhen-Mouse-Leave
单选题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?()A1B2C3D4
多选题Which two statements are true about mouse button variables?()ASYSTEM.MOUSE_BUTTON_PRESSED returns a string.BSYSTEM.MOUSE_BUTTON_PRESSED returns a numeric value. 1Z0-132 World Leaders In Certifications Material - Test-king.comCA possible value for SYSTEM.MOUSE_BUTTON_MODIFIERS is Control+Alt+Delete.DSYSTEM.MOUSE_BUTTON_MODIFIERS can only be references in form-level triggers.ESYSTEM.MOUSE_BUTTON_MODIFIERS identifies which special key was pressed in conjunction with the usual mouse button action.