【计算机类职业资格】计算机二级JAVA-166 (1)及答案解析.doc

上传人:吴艺期 文档编号:1338281 上传时间:2019-10-17 格式:DOC 页数:2 大小:34.50KB
下载 相关 举报
【计算机类职业资格】计算机二级JAVA-166 (1)及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】计算机二级JAVA-166 (1)及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、计算机二级 JAVA-166 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是用按钮来控制文本框中文本的颜色。窗口中有两个带有文字标题的“Sample text”和“Text color control”面板,窗 ISl 的底部还有一个“Disable changes”复选框。在“Sample text”面板中有一个带有字符串的文本框,而在“Text color control”面板中有“Black”、“Red”和“Green”三个按钮,并且每个按钮上都有一个对应颜色的圆。单击任意按钮,文本框中的文本变成对应的颜色,

2、如果选中“Disable changes”复选框,则三个颜色按钮变为不可用,如果取消选中复选框,则三个按钮变为可用,如图所示。 (分数:30.00)_2.本程序是一个 Applet,功能是监听鼠标在面板上的移动。页面上有三个不同颜色的面板,当鼠标移到其中一个面板上时,该面板颜色发生改变,当鼠标移开后,该面板颜色又恢复原色,如图所示。 (分数:30.00)_3.本程序是一个 Applet,功能是监听对于文本域中文本的选择。页面中有一个文本域、一个“复制”按钮和一个文本框,选中文本域中部分文字后,单击“复制”按钮,所选文字将显示在文本框中,如图所示。(分数:40.00)_计算机二级 JAVA-16

3、6 (1)答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是用按钮来控制文本框中文本的颜色。窗口中有两个带有文字标题的“Sample text”和“Text color control”面板,窗 ISl 的底部还有一个“Disable changes”复选框。在“Sample text”面板中有一个带有字符串的文本框,而在“Text color control”面板中有“Black”、“Red”和“Green”三个按钮,并且每个按钮上都有一个对应颜色的圆。单击任意按钮,文本框中的文本变成对应的颜色,如果选中“Disable c

4、hanges”复选框,则三个颜色按钮变为不可用,如果取消选中复选框,则三个按钮变为可用,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:upper.setLayout( new BorderLayout() ) 第 2 处:class ButtonListener implements ActionListener 第 3 处:this.c = c2.本程序是一个 Applet,功能是监听鼠标在面板上的移动。页面上有三个不同颜色的面板,当鼠标移到其中一个面板上时,该面板颜色发生改变,当鼠标移开后,该面板颜色又恢复原色,如图所示。 (分数:30.00)_正确答案:()解析:第

5、1 处:public void init() 第 2 处:extends Panel implements MouseListener 第 3 处:addMouseListener(this)3.本程序是一个 Applet,功能是监听对于文本域中文本的选择。页面中有一个文本域、一个“复制”按钮和一个文本框,选中文本域中部分文字后,单击“复制”按钮,所选文字将显示在文本框中,如图所示。(分数:40.00)_正确答案:()解析:第 1 处:setLayout(new FlowLayout(FlowLayout.LEFT) 第 2 处:button.addActionListener(this) 第 3 处:s=ta.getSelectedText()

展开阅读全文
相关资源
猜你喜欢
  • NBN-ISO 6412-3-1994 6875 Technical dravvings - Simplified representation of pipelines - Part 3  Terminal features of ventilation and drainage systems《技术制图 管道的简化表示法 第3部分:通风和排放系统终端部件.pdf NBN-ISO 6412-3-1994 6875 Technical dravvings - Simplified representation of pipelines - Part 3 Terminal features of ventilation and drainage systems《技术制图 管道的简化表示法 第3部分:通风和排放系统终端部件.pdf
  • NBN-ISO 6488-1992 1250 Tobacco ~ Determination of water content (Reference method)《烟草 水含量的测定(参考方法)》.pdf NBN-ISO 6488-1992 1250 Tobacco ~ Determination of water content (Reference method)《烟草 水含量的测定(参考方法)》.pdf
  • NBN-ISO 6511-1992 1250 Building construction - Modular coordination - Modular floor plane for vertical dimensions《建筑结构 模数协调 垂直尺寸的模数地板面》.pdf NBN-ISO 6511-1992 1250 Building construction - Modular coordination - Modular floor plane for vertical dimensions《建筑结构 模数协调 垂直尺寸的模数地板面》.pdf
  • NBN-ISO 6565-1992 5625 Tobacco and tobacco products - Draw resistance of cigarettes and filter rods - Definitions standard conditions and generai aspects《烟草和烟草制品 卷烟和过滤咀的耐拉性 标准条件和测量.pdf NBN-ISO 6565-1992 5625 Tobacco and tobacco products - Draw resistance of cigarettes and filter rods - Definitions standard conditions and generai aspects《烟草和烟草制品 卷烟和过滤咀的耐拉性 标准条件和测量.pdf
  • NBN-ISO 6589-1992 0000 Joints in building - Laboratory method of test for air permeability of joints《建筑物的接缝 连接点的透气性试验的实验室方法》.pdf NBN-ISO 6589-1992 0000 Joints in building - Laboratory method of test for air permeability of joints《建筑物的接缝 连接点的透气性试验的实验室方法》.pdf
  • NBN-ISO 6707-1-1992 3125 Building and civil engineering - Vocabulary - Part 1  General terms《建筑及土木工程 词汇 第1部分:一般术语》.pdf NBN-ISO 6707-1-1992 3125 Building and civil engineering - Vocabulary - Part 1 General terms《建筑及土木工程 词汇 第1部分:一般术语》.pdf
  • NBN-ISO 6743-10-1991 3125 Smeermiddelen industri le oli n en aanverwante produkten (klasse L) Classificatie - Deel 10  Familie Y (Andere toepassingen)《润滑剂,工业润滑油和相关产品(L级)分类 第10部分:Y族.pdf NBN-ISO 6743-10-1991 3125 Smeermiddelen industri le oli n en aanverwante produkten (klasse L) Classificatie - Deel 10 Familie Y (Andere toepassingen)《润滑剂,工业润滑油和相关产品(L级)分类 第10部分:Y族.pdf
  • NBN-ISO 6743-11-1991 7500 Lubricants industrial oils and related products (class L) - Classification - Part 11  Family P (Pneumatic tools)《润滑剂,工业润滑油和相关产品(L级)分类 第11部分:P族(气动工具)》.pdf NBN-ISO 6743-11-1991 7500 Lubricants industrial oils and related products (class L) - Classification - Part 11 Family P (Pneumatic tools)《润滑剂,工业润滑油和相关产品(L级)分类 第11部分:P族(气动工具)》.pdf
  • NBN-ISO 6743-12-1991 Lubrifiants huiles industrielles et produits connexes (classe L) - Classification - Partie 12  Famille Q (Fluides de transfert de chaleur)《润滑剂,工业用油及相关产品(L等级)分类.pdf NBN-ISO 6743-12-1991 Lubrifiants huiles industrielles et produits connexes (classe L) - Classification - Partie 12 Famille Q (Fluides de transfert de chaleur)《润滑剂,工业用油及相关产品(L等级)分类.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1