java.awt.event包中的KeyAdapter类实现了KeyListener接口。
java.awt.event包中的KeyAdapter类实现了KeyListener接口。
下列代码中的键盘适配器类是______。 public classMyKey extends KeyAdapter{ publicviod keyPressed(KeyEvent e){} publicviod keyReleased(KeyEvent e){} publicviod keyTyped(KeyEvent e){} } 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
下列代码中的键盘适配器类是[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
下列代码中的键盘适配器类是[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
处理ActionEvent事件的监听器对象需要实现哪个接口( ) A: ActionListener B: KeyAdapter C: KeyEvent D: KeyListener
处理ActionEvent事件的监听器对象需要实现哪个接口( ) A: ActionListener B: KeyAdapter C: KeyEvent D: KeyListener
为监听键盘事件,监听器必须实现哪个接口或继承哪个类() A: MouseListener/MouseAdapter B: KeyListener/KeyAdapter C: WindowListener/WindowAdapter D: ComponentListener/ComponentAdapter
为监听键盘事件,监听器必须实现哪个接口或继承哪个类() A: MouseListener/MouseAdapter B: KeyListener/KeyAdapter C: WindowListener/WindowAdapter D: ComponentListener/ComponentAdapter
下列类定义中,错误的是( )。 A: class x { .... } B: class x extends y { .... } C: class x implements y1,y2 { .... } D: public class x extends MouseAdapter,KeyAdapter { .... }
下列类定义中,错误的是( )。 A: class x { .... } B: class x extends y { .... } C: class x implements y1,y2 { .... } D: public class x extends MouseAdapter,KeyAdapter { .... }