下列代码中的键盘适配器类是[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
A: MyKey
B: KeyListener
C: KeyAdapter
D: 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
- 下列方法中不属于KeyListener接口中方法的是()。 A: keyPressed(KeyEvent) B: keyPushed(KeyEvent) C: keyTyped(KeyEvent) D: keyReleased(KeyEvent)
- 下列方法中不属于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 )
- 当键盘被按下时,将调用的键盘事件接口方法是() A: void keyPressed(KeyEvent) B: void keyReleased(KeyEvent) C: void keyUpDown(KeyEvent) D: void keyTyped(KeyEvent)