网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

按钮可以产生ActionEvent事件,实现()接口可处理此事件。

  • A、FocusListener
  • B、ComponentListener
  • C、WindowListener
  • D、ActionListener

参考答案

更多 “按钮可以产生ActionEvent事件,实现()接口可处理此事件。A、FocusListenerB、ComponentListenerC、WindowListenerD、ActionListener” 相关考题
考题 对鼠标点击按钮操作进行事件处理的接口是A ) MouseListenerB ) WindowsListenerC ) ActionListenerD ) KeyListener

考题 要产生一个动作监听器类,需要实现什么接口?() A.OnActionPerformed接口;B.ActionEvent接口;C.OnEventAction接口;D.ActionListener接口;

考题 实现下列( )接口可以对TextField对象的事件注行监听和处理。A.ActionListenerB.FocusListenerC.MouseMotionListenerD.WindowListener

考题 下列说法中错误的一项是______。A.监听器要处理某类型的事件,必须实现该类事件相应的接口B.授权处理模型把事件的处理和事件源分开,将处理交付外部的处理实体进行C.在Java中,每一个事件类都有一个与之相对应的接口D.监听器要处理某类型的事件,不一定必须实现与该类事件相应的接口

考题 点击按钮可以产生ActionEvent事件,实现( )接口可处理此事件。A.FocusListenerB.ComponentListenerC.WindowListenerD.ActionListener

考题 对鼠标单击按钮操作进行事件处理的接口是( )。 A.MouseListenerB.WindowListenerSXB 对鼠标单击按钮操作进行事件处理的接口是( )。A.MouseListenerB.WindowListenerC.ActionListenerD.KeyListener

考题 下列说法中错误的一项是______。A.同一个对象可以监听一个事件源上的多个不同的事件B.一个类中可以同时出现事件源和事件处理者C.一个类可以实现多个监听器接口D.一个类只能实现一个监听器接口

考题 ActionEvent事件相应的监听器接口是A.ActionListenerB.ActionEventListenerC.ContainerListenerD.ContainerEventListener

考题 处理ActionEvent事件的监听器对象需要实现哪个接口() A.ActionListenerB.KeyListenerC.KeyEventD.KeyAdapter

考题 Java 1.1中的事件处理模型要求事件监听器要在事件源中注册,并且要实现相应的事件监听器接口。() 此题为判断题(对,错)。

考题 在actionPerformed()方法中,通过getSource()方法判断引起ActionEvent事件的事件源。 () 此题为判断题(对,错)。

考题 要产生一个动作监听器类,需要实现什么接口?()A、OnActionPerformed接口;B、ActionEvent接口;C、OnEventAction接口;D、ActionListener接口;

考题 以下的代码是如何实现事件处理过程的?()   class HelllWordFrame_jButton4_actionAdapter implements     ActionListener {  HelloWorldFrame adaptee;  HelloworldFrame_jButton4_actionAdapter(HelloWorldFrame adaptee){       this.adaptee=adaptee;}  public void actionPerformed(ActionEvent e){        adaptee,jButton4_actionPerfomed(e);}  }A、在事件处理类的actionPerformed函数中,调用主框架的对应函数进行处理B、事件处理类实现了ActionListener接口C、主框架作为事件处理类的一部分,包括在事件处理类中D、在事件处理类的构造函数中将主框架的引用变量传递给事件处理类E、在事件处理类的构构造函数中,创建一个主框架对象,并显示该对象

考题 处理菜单项事件的接口是(),要实现的接口方法是(),获得事件源的方法是()。

考题 关于事件处理程序编写步骤,不包括哪一项()A、实现某一事件的监听器接口(定义事件处理类并实现监听器接口)B、在事件处理类中根据实际需要实现相应的抽象方法C、给组件注册相应事件监听器以指明该事件的事件源有哪些D、触发该类事件并测试

考题 下列叙述正确的是哪项?()  A、TextField能产生ActionEvent事件B、TextArea能产乍ActionEvent事件C、Button能产牛ActionEvent事件D、Menultem能产生ActionEvent事件

考题 下列叙述正确的是哪项?()A、MouseListener接口定义了处理鼠标点击事件的方法B、MouseMotionListener接口定义了处理鼠标点击事件的方法C、MouseClickListener接口定义了处理鼠标点击事什的方法D、ActionListener接口定义了处理按钮点击事件的方法

考题 在事件处理中,适配器的作用是什么?()A、避免实现不需要的函数接口B、跳过事件处理类,直接面对事件处理函数C、使得框架类可以同时兼作事件处理类D、提高事件处理的执行速度

考题 填空题处理菜单项事件的接口是(),要实现的接口方法是(),获得事件源的方法是()。

考题 单选题在类中若要处理ActionEvent事件,则该类需要实现的接口是()。A ActionListenerB RunnableC SerializableD Event

考题 多选题下列叙述正确的是哪项?()AMouseListener接口定义了处理鼠标点击事件的方法BMouseMotionListener接口定义了处理鼠标点击事件的方法CMouseClickListener接口定义了处理鼠标点击事什的方法DActionListener接口定义了处理按钮点击事件的方法

考题 单选题实现下列哪个接口可以对TextField对象的事件进行监听和处理?()A MouseMotionListenerB FocusListenerC ActionListenerD WindowListener

考题 多选题以下的代码是如何实现事件处理过程的?()   class HelllWordFrame_jButton4_actionAdapter implements     ActionListener {  HelloWorldFrame adaptee;  HelloworldFrame_jButton4_actionAdapter(HelloWorldFrame adaptee){       this.adaptee=adaptee;}  public void actionPerformed(ActionEvent e){        adaptee,jButton4_actionPerfomed(e);}  }A在事件处理类的actionPerformed函数中,调用主框架的对应函数进行处理B事件处理类实现了ActionListener接口C主框架作为事件处理类的一部分,包括在事件处理类中D在事件处理类的构造函数中将主框架的引用变量传递给事件处理类E在事件处理类的构构造函数中,创建一个主框架对象,并显示该对象

考题 单选题处理按钮点击事件的类需要实现哪个接口()A FocusListenerB ActionListenerC WindowListenerD ItemListener

考题 多选题下列叙述正确的是哪项?()ATextField能产生ActionEvent事件BTextArea能产乍ActionEvent事件CButton能产牛ActionEvent事件DMenultem能产生ActionEvent事件

考题 单选题在事件处理中,适配器的作用是什么?()A 避免实现不需要的函数接口B 跳过事件处理类,直接面对事件处理函数C 使得框架类可以同时兼作事件处理类D 提高事件处理的执行速度

考题 多选题实现下列()接口可以对TextField对象的事件进行监听和处理。AActionListenerBFocusListenerCMouseMotionListenerDWindowListener