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

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

1、计算机二级 JAVA-137 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序的功能是通过滑动条修改颜色的 RGB 值,从而控制颜色。程序中有一个面板、3 个标签和 3 个滑动条,标签和滑动条一一对应,分别对应三原色红、绿、蓝,任意拖动其中一个滑动条,所对应的颜色值就会发生变化,面板的颜色也会对应发生变化,滑动条值的范围是 0255,如图所示。 (分数:30.00)_2.本程序使用下拉菜单来控制字体,窗口中有一个标签和一个下拉菜单,当选中下拉菜单中的任一项字体时,标签上字符串的字体就随之改变,如图所示。 (分数:30.00)

2、3.本程序中,通过菜单 Connect 显示一个对话框,对话框中有“User name”和“Password”两个文本框,在这两个文本框中输入内容后单击“Ok”按钮,在主窗口的下面就会显示所填写的内容。例如在“User name”文本框中填写“Joun”,在“Password”文本框中填写“19820201”,单击“Ok”按钮后,在主窗口的下面就会显示出“username=Joun,password=19820201”,如图所示。 (分数:40.00)_计算机二级 JAVA-137 (1)答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.

3、本程序的功能是通过滑动条修改颜色的 RGB 值,从而控制颜色。程序中有一个面板、3 个标签和 3 个滑动条,标签和滑动条一一对应,分别对应三原色红、绿、蓝,任意拖动其中一个滑动条,所对应的颜色值就会发生变化,面板的颜色也会对应发生变化,滑动条值的范围是 0255,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:getContentPane() 第 2 处:colorPanel.repaint()2.本程序使用下拉菜单来控制字体,窗口中有一个标签和一个下拉菜单,当选中下拉菜单中的任一项字体时,标签上字符串的字体就随之改变,如图所示。 (分数:30.00)_正确答案:()解析:第

4、 1 处:implements ActionListener 第 2 处:evt.getSource()3.本程序中,通过菜单 Connect 显示一个对话框,对话框中有“User name”和“Password”两个文本框,在这两个文本框中输入内容后单击“Ok”按钮,在主窗口的下面就会显示所填写的内容。例如在“User name”文本框中填写“Joun”,在“Password”文本框中填写“19820201”,单击“Ok”按钮后,在主窗口的下面就会显示出“username=Joun,password=19820201”,如图所示。 (分数:40.00)_正确答案:()解析:第 1 处:JMenuBar mbar = new JMenuBar() 第 2 处:return button

展开阅读全文
相关资源
猜你喜欢
  • EN 13402-3-2017 en Size designation of clothes - Part 3 Size labelling based on body measurements and intervals.pdf EN 13402-3-2017 en Size designation of clothes - Part 3 Size labelling based on body measurements and intervals.pdf
  • EN 13403-2003 en Ventilation for buildings - Non-metallic ducts - Ductwork made from insulation ductboards《建筑物通风 非金属管道 由绝热道管板制成的管道系统》.pdf EN 13403-2003 en Ventilation for buildings - Non-metallic ducts - Ductwork made from insulation ductboards《建筑物通风 非金属管道 由绝热道管板制成的管道系统》.pdf
  • EN 13406-2002 en Agricultural machinery Slurry tankers and spreading devices Environmental protection Requirements and test methods for the spreading precision《农用机械 淤泥槽车和喷撒装置 环境保护 .pdf EN 13406-2002 en Agricultural machinery Slurry tankers and spreading devices Environmental protection Requirements and test methods for the spreading precision《农用机械 淤泥槽车和喷撒装置 环境保护 .pdf
  • EN 13407-2015 en Wall-hung urinals - Functional requirements and test methods《墙挂式小便器 功能要求和试验方法》.pdf EN 13407-2015 en Wall-hung urinals - Functional requirements and test methods《墙挂式小便器 功能要求和试验方法》.pdf
  • EN 13408-2002 en Methods of Test for Hydraulic Setting Floor Smoothing and or Levelling Compounds - Determination of Bond Strength《水压调整地面平滑和 或调平用复合物的试验法 粘合强度测定》.pdf EN 13408-2002 en Methods of Test for Hydraulic Setting Floor Smoothing and or Levelling Compounds - Determination of Bond Strength《水压调整地面平滑和 或调平用复合物的试验法 粘合强度测定》.pdf
  • EN 13409-2002 en Methods of Test for Hydraulic Setting Floor Smoothing and or Levelling Compounds - Determination of Setting Time《水压调整地面平滑和 或调平用复合物的试验法 调整时间测定》.pdf EN 13409-2002 en Methods of Test for Hydraulic Setting Floor Smoothing and or Levelling Compounds - Determination of Setting Time《水压调整地面平滑和 或调平用复合物的试验法 调整时间测定》.pdf
  • EN 1341-2012 en Slabs of natural stone for external paving - Requirements and test methods《天然石材板外部铺平道路 要求和测试方法》.pdf EN 1341-2012 en Slabs of natural stone for external paving - Requirements and test methods《天然石材板外部铺平道路 要求和测试方法》.pdf
  • EN 13410-2001 en Gas-Fired Overhead Radiant Heaters - Ventilation Requirements for Non-Domestic Premises (Incorporating Corrigendum July 2002)《燃气顶部辐射加热器 非家用房屋的通风要求 合并勘误表-2002年7月》.pdf EN 13410-2001 en Gas-Fired Overhead Radiant Heaters - Ventilation Requirements for Non-Domestic Premises (Incorporating Corrigendum July 2002)《燃气顶部辐射加热器 非家用房屋的通风要求 合并勘误表-2002年7月》.pdf
  • EN 13411-1-2002 en Terminations for steel wire ropes - Safety - Part 1 Thimbles for steel wire rope slings (Incorporates Amendment A1 2008)《钢丝绳终端设备的安全性 第1部分 钢丝绳吊索用穿线环 合并勘误表A1-2008》.pdf EN 13411-1-2002 en Terminations for steel wire ropes - Safety - Part 1 Thimbles for steel wire rope slings (Incorporates Amendment A1 2008)《钢丝绳终端设备的安全性 第1部分 钢丝绳吊索用穿线环 合并勘误表A1-2008》.pdf
  • 相关搜索

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

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