下列方法中不属于KeyListener接口中方法的是( )。
A: A) keyPressed(KeyEvent)
B: B) keyPushed(KeyEvent)
C: C) keyTyped(KeyEvent)
D: D) keyReleased(KeyEvent)
A: A) keyPressed(KeyEvent)
B: B) keyPushed(KeyEvent)
C: C) keyTyped(KeyEvent)
D: D) keyReleased(KeyEvent)
B
举一反三
- 下列方法中不属于KeyListener接口中方法的是( )。 A: A) keyPressed(KeyEvent) B: B) keyPushed(KeyEvent) C: C) keyTyped(KeyEvent) D: D) keyReleased(KeyEvent)
- 下列选项中,不属于键盘事件处理方法的是 A: keyDown( keyEvent ) B: keyPressed( keyEvent ) C: keyReleased( keyEvent ) D: keyTyped( keyEvent )
- 下列代码中的键盘适配器类是______。 public classMyKey extends KeyAdapter{ publicviod keyPressed(KeyEvent e){} publicviod keyReleased(KeyEvent e){} publicviod keyTyped(KeyEvent e){} } A: MyKey B: KeyListener C: KeyAdapter D: KeyEvent
- 当键盘被按下时,将调用的键盘事件接口方法是() A: void keyPressed(KeyEvent) B: void keyReleased(KeyEvent) C: void keyUpDown(KeyEvent) D: void keyTyped(KeyEvent)
- 下列代码中的键盘适配器类是[u] [/u]。public class MyKey extends KeyAdapter{ public viod keyPressed(KeyEvent e){ } public viod keyReleased(KeyEvent e){ } public viod keyTyped(KeyEvent e){ }} A: MyKey B: KeyListener C: KeyAdapter D: KeyEvent
内容
- 0
下列方法中不属于KeyListener接口中方法的是( )。 A: keyPressed(KeyEven B: keyPushed(KeyEven C: keyTyped(KeyEven D: keyReleased(KeyEven
- 1
要对键盘按键响应,需要对KeyEvent事件监听。KeyEvent事件监听器是实现KeyListener接口的类对象。()
- 2
【判断题】OnKeyListener接口需要实现的方法为public boolean onKey(View v, int keyCode, KeyEvent keyEvent)
- 3
创建监视KeyEvent事件的监视器的类必须实现KeyListener接口。
- 4
处理KeyEvent事件的监听器对象只有实现KeyListener接口一个途径