处理ActionEvent事件的监听器对象需要实现哪个接口( )
A: ActionListener
B: KeyAdapter
C: KeyEvent
D: KeyListener
A: ActionListener
B: KeyAdapter
C: KeyEvent
D: KeyListener
A
举一反三
- 要对键盘按键响应,需要对KeyEvent事件监听。KeyEvent事件监听器是实现KeyListener接口的类对象。()
- 处理KeyEvent事件的监听器对象只有实现KeyListener接口一个途径
- 事件KeyEvent类对应的相关接口(监听器)? A: KeyListener B: AdjustmentListener C: ActionListener D: MouseListener
- 为监听键盘事件,监听器必须实现哪个接口或继承哪个类() A: MouseListener/MouseAdapter B: KeyListener/KeyAdapter C: WindowListener/WindowAdapter D: ComponentListener/ComponentAdapter
- 处理ActionEvent事件的监听器对象需要实现【 】接口。
内容
- 0
在案例中,类通过实现()接口将自己定义为可以监听事件的事件监听器类。 A: ActionEvent B: Runable C: ActionListener D: Action
- 1
事件ItemEvent的监听器接口是( ) A: ItemListener B: ActionListener C: WindowListener D: KeyListener
- 2
要产生一个动作监听器类,需要实现什么接口?() A: OnActionPerformed接口; B: ActionEvent接口; C: OnEventAction接口; D: ActionListener接口;
- 3
下面哪个事件监听器可以处理在文本框中输入回车键的事件()。 A: ItemListener B: ActionListener C: KeyListener D: MouseListener
- 4
实现下列哪个接口可以对TextField对象的事件进行监听和处理?() A: MouseMotionListener B: FocusListener C: ActionListener D: WindowListener