• 2022-06-10
    处理ActionEvent事件的监听器对象需要实现哪个接口( )
    A: ActionListener
    B: KeyAdapter
    C: KeyEvent
    D: KeyListener
  • A

    内容

    • 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