首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
Swing中要响应动作事件必须实现ActionListener接口,而实现ActionListenrer接口必须实现的方法是 ( )。
Swing中要响应动作事件必须实现ActionListener接口,而实现ActionListenrer接口必须实现的方法是 ( )。
admin
2010-07-28
29
问题
Swing中要响应动作事件必须实现ActionListener接口,而实现ActionListenrer接口必须实现的方法是 ( )。
选项
A、actionPerfonned()
B、focusGained()
C、actionMoved()
D、focusLost()
答案
1
解析
本题考查关于事件响应中ActionListener方法的基本知识。选项A正确, actionPerformed()方法是ActionListener接口中的唯一方法;选项B错误,focusGained()方法是FocusListener接口中的方法:选项C错误, ActionListener接口中没有actionMoved();选项D错误,focusGained()方法是FocusListener接口中的方法。故本题答案是A。
转载请注明原文地址:https://jikaoti.com/ti/YaH0FFFM
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
下列关于数据库设计的叙述中,正确的是
下列叙述中正确的是
对于循环队列,下列叙述中正确的是
有两个关系R和T如下:则由关系R得到关系T的操作是
下面对对象概念描述正确的是
以下选项中,对文件的描述错误的是
以下选项中,不是Python对文件的打开模式的是
以下代码的输出结果是print(’’{1}的值为{0:.6f}’’.format(3.1415926,’’π’’))
使用下列哪个选项可以调用基类中的特定构造方法?
请完成下列Java程序:程序的功能演示了如何通过实现Runnable接口创建线程对象,程序中定义了一个类B,类中重写了含一个字符串参数的构造方法,并实现了Runnable接口,即在类B中编写了接口中的run()方法的方法体。还定义了一个应用程序类ex35_
随机试题
右肺分上、下两叶,左肺分上、中、下三叶。
流传至今的《尔雅注》的作者是()。
云南的甲厂与广西的乙商场于2011年6月订立奶粉买卖合同,约定7月25日由甲厂在广西的火车站交货。7月14日由于南方洪水灾害,交通暂时中断,甲厂未将此情势通知乙商场,乙商场亦未查询。8月1日交通恢复后,甲厂立即装运,8月9日运抵广西的火车站,甲厂押运人通知
我国是世界上生物种类最丰富的国家之一,高等植物和野生动物物种均占世界10%左右。然而,环境污染和生态破坏导致了动植物生存环境的破坏,物种数量急剧减少,有的物种已经灭绝。据统计,近50年约有200种高等植物灭绝,平均每年灭绝4种;野生动物中约有400种处于濒
在美洲某个国家,希望戒烟的人使用一种尼古丁皮肤贴,它可释放小剂量的尼古丁透过皮肤。从下个月开始,人们可以不用医生处方购买这种皮肤贴,尽管非处方购买的皮肤贴并不比使用处方购买的皮肤贴更有效,而且二者价格同样昂贵,但是皮肤贴制造商预计非处方购买的皮肤贴将令近年
VFP中类层次可分两类,分别为【】和【】。
打开考生文件夹下的演示文稿yswg.pptx,按照下列要求完成对此文稿的修饰并保存。使用“模块”主题修饰全文,全部幻灯片切换方案为“旋转”,效果选项为“自顶部”。
Alandfreefromdestruction,pluswealth,naturalresources,andlaborsupplyallthesewereimportant【21】______inhelpin
Readthearticlebelowabouttheroleofexecutiverecruitmentagencies.Choosethebestsentencefromtheoppositepagetofil
Sofar,inflationisroaringinonlyafewsectorsoftheeconomy.Whileplatinumhassoared121percent,soybeanshaverisen11
最新回复
(
0
)