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

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

1、计算机二级 JAVA-87及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是监听对滚动条和滑动条的操作。窗口中有一个水平放置的滚动条和一个水平放置的滑动条,拖动滚动条或滑动条的滑块时,下方的文字标签将显示当前操作的对象以及对应的值,如图所示。 (分数:33.00)_2.本程序的功能是在文本域中插入图形和按钮。窗口中有一个文本域和三个按钮:“插入文本”、“图形按钮”和“插入按钮”,单击“插入文本”按钮后将在文本域中插入文本,单击图形按钮,将把图形按钮上的图形添加到文本域中,单击“插入”按钮将在文本域中添加一个名为“点击我”的按

2、钮,如图所示。 (分数:33.00)_3.本程序的功能是解析 HTML。窗口中有一个文本域、一个文字标签和一个“改变标签显示内容”按钮,在文本域中输入 HTML代码,单击按钮后,如果 HTML语法没有错误,右侧文字标签将显示对应 HTML语言显示风格的内容,否则将弹出一个错误信息提示框,如图所示。 (分数:34.00)_计算机二级 JAVA-87答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是监听对滚动条和滑动条的操作。窗口中有一个水平放置的滚动条和一个水平放置的滑动条,拖动滚动条或滑动条的滑块时,下方的文字标签将显示当前操

3、作的对象以及对应的值,如图所示。 (分数:33.00)_正确答案:()解析:第 1处:scrollBar.addAdjustmentListener(new AdjustmentListener( ) 第 2处:slider.addChangeListener(new ChangeListener( ) 第 3处:slider.getValue( )2.本程序的功能是在文本域中插入图形和按钮。窗口中有一个文本域和三个按钮:“插入文本”、“图形按钮”和“插入按钮”,单击“插入文本”按钮后将在文本域中插入文本,单击图形按钮,将把图形按钮上的图形添加到文本域中,单击“插入”按钮将在文本域中添加一个名

4、为“点击我”的按钮,如图所示。 (分数:33.00)_正确答案:()解析:第 1处:pane.replaceSelection(“文本“) 第 2处:pane.insertIcon(icon) 第 3处:pane.insertComponent(new JButton(“点击我“)3.本程序的功能是解析 HTML。窗口中有一个文本域、一个文字标签和一个“改变标签显示内容”按钮,在文本域中输入 HTML代码,单击按钮后,如果 HTML语法没有错误,右侧文字标签将显示对应 HTML语言显示风格的内容,否则将弹出一个错误信息提示框,如图所示。 (分数:34.00)_正确答案:()解析:第 1处:theLabel.setText(htmlTextArea.getText() 第 2处:JOptionPane.showMessageDialog 第 3处:JPanel rightPanel = new JPanel()

展开阅读全文
相关资源
猜你喜欢
  • BS EN 1521-1997 Determination of flexural strength of lightweight aggregate concrete with open structure《开式结构轻集料混凝土挠曲强度的测定》.pdf BS EN 1521-1997 Determination of flexural strength of lightweight aggregate concrete with open structure《开式结构轻集料混凝土挠曲强度的测定》.pdf
  • BS EN 1522-1999 Windows doors shutters and blinds - Bullet resistance - Requirements and classification《门 窗 遮窗和百页窗 子弹抗性 要求和分类》.pdf BS EN 1522-1999 Windows doors shutters and blinds - Bullet resistance - Requirements and classification《门 窗 遮窗和百页窗 子弹抗性 要求和分类》.pdf
  • BS EN 1523-1999 Windows doors shutters and blinds - Bullet resistance - Test method《门 窗 遮帘和百页窗 子弹抗性 试验方法》.pdf BS EN 1523-1999 Windows doors shutters and blinds - Bullet resistance - Test method《门 窗 遮帘和百页窗 子弹抗性 试验方法》.pdf
  • BS EN 1525-1998 Safety of industrial trucks - Driverless trucks and their systems《工业货车的安全性 无人驾驶货车及其系统》.pdf BS EN 1525-1998 Safety of industrial trucks - Driverless trucks and their systems《工业货车的安全性 无人驾驶货车及其系统》.pdf
  • BS EN 1527-2013 Building hardware Hardware for sliding doors and folding doors Requirements and test methods《建筑五金 滑门和折叠门五金 试验方法和要求》.pdf BS EN 1527-2013 Building hardware Hardware for sliding doors and folding doors Requirements and test methods《建筑五金 滑门和折叠门五金 试验方法和要求》.pdf
  • BS EN 1528-1-1997 Fatty food - Determination of pesticides and polychlorinated biphenyls (PCBs) - General《油脂食品 农药和多氯联苯(PCBs)的测定 总则》.pdf BS EN 1528-1-1997 Fatty food - Determination of pesticides and polychlorinated biphenyls (PCBs) - General《油脂食品 农药和多氯联苯(PCBs)的测定 总则》.pdf
  • BS EN 1528-2-1997 Fatty food - Determination of pesticides and polychlorinated biphenyls (PCBs) - Extraction of fat pesticides and PCBs and determination of fat content《油脂食品 农药和多氯联.pdf BS EN 1528-2-1997 Fatty food - Determination of pesticides and polychlorinated biphenyls (PCBs) - Extraction of fat pesticides and PCBs and determination of fat content《油脂食品 农药和多氯联.pdf
  • BS EN 1528-3-1997 Fatty food - Determination of pesticides and polychlorinated biphenyls (PCBs) - Clean-up methods《油脂食品 农药和多氯联苯(PCBs)的测定 提纯法》.pdf BS EN 1528-3-1997 Fatty food - Determination of pesticides and polychlorinated biphenyls (PCBs) - Clean-up methods《油脂食品 农药和多氯联苯(PCBs)的测定 提纯法》.pdf
  • BS EN 1528-4-1997 Fatty food - Determination of pesticides and polychlorinated biphenyls (PCBs) - Determination confirmatory tests miscellaneous《油脂食品 农药和多氯联苯(PCBs)的测定 测定、认可试验和其它各种试.pdf BS EN 1528-4-1997 Fatty food - Determination of pesticides and polychlorinated biphenyls (PCBs) - Determination confirmatory tests miscellaneous《油脂食品 农药和多氯联苯(PCBs)的测定 测定、认可试验和其它各种试.pdf
  • 相关搜索

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

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