网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
在类中若要处理ActionEvent事件,则该类需要实现的接口是()。
- A、ActionListener
- B、Runnable
- C、Serializable
- D、Event
参考答案
更多 “在类中若要处理ActionEvent事件,则该类需要实现的接口是()。A、ActionListenerB、RunnableC、SerializableD、Event” 相关考题
考题
要产生一个动作监听器类,需要实现什么接口?()
A.OnActionPerformed接口;B.ActionEvent接口;C.OnEventAction接口;D.ActionListener接口;
考题
实现下列( )接口可以对TextField对象的事件注行监听和处理。A.ActionListenerB.FocusListenerC.MouseMotionListenerD.WindowListener
考题
实现下列______接口可以对TextField对象的事件进行监听和处理。A.ActionListenerB.FocusListenerC.MouseMotionListenerD.WindowListener
考题
下列说法中错误的一项是______。A.监听器要处理某类型的事件,必须实现该类事件相应的接口B.授权处理模型把事件的处理和事件源分开,将处理交付外部的处理实体进行C.在Java中,每一个事件类都有一个与之相对应的接口D.监听器要处理某类型的事件,不一定必须实现与该类事件相应的接口
考题
点击按钮可以产生ActionEvent事件,实现( )接口可处理此事件。A.FocusListenerB.ComponentListenerC.WindowListenerD.ActionListener
考题
下列说法中不正确的是( )。A.Java语言中的事件都是继承自Java.awt.AW-TEvent类B.AWTEvent类是Event( )bject类的子类C.Java的AwT事件分为低级事件和高级事件D.ActionEvent类是AWTEvent类的子类
考题
ActionEvent事件相应的监听器接口是A.ActionListenerB.ActionEventListenerC.ContainerListenerD.ContainerEventListener
考题
卖现下列哪个接口可以对TextField对象的事件进行监听和处理? ( )A.ActionListenerB.FocusListenerC.MouseMotionListenerD.WindowListener
考题
要产生一个动作监听器类,需要实现什么接口?()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、在事件处理类的构构造函数中,创建一个主框架对象,并显示该对象
考题
按钮可以产生ActionEvent事件,实现()接口可处理此事件。A、FocusListenerB、ComponentListenerC、WindowListenerD、ActionListener
考题
实现下列()接口可以对TextField对象的事件进行监听和处理。A、ActionListenerB、FocusListenerC、MouseMotionListenerD、WindowListener
考题
关于事件处理程序编写步骤,不包括哪一项()A、实现某一事件的监听器接口(定义事件处理类并实现监听器接口)B、在事件处理类中根据实际需要实现相应的抽象方法C、给组件注册相应事件监听器以指明该事件的事件源有哪些D、触发该类事件并测试
考题
多选题以下的代码是如何实现事件处理过程的?() 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在事件处理类的构构造函数中,创建一个主框架对象,并显示该对象
考题
多选题在Java语言中,如果你想编写一个多线程的程序,你可以使用的方法是()。A扩展类ThreadB实现接口RunnableC扩展类RunnableD实现接口Thread
热门标签
最新试卷