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

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

1、计算机二级 JAVA-82及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是监听鼠标将文件对象拖到程序窗口中。窗口中只有一个文本域,选中一个文件,拖到窗口中后,文本域中将显示该次拖动操作的类型,以及拖动的文件路径及名称(鼠标直接拖动为移动操作,按住 Ctrl键拖动属于复制操作,按住 Ctrl+Shift键拖动属于建立快捷键操作),如图所示。 (分数:33.00)_2.本程序的功能是对图形进行操作,包括旋转、移位、放大和剪切。窗口中有四个单选按钮和一个图形面板,图形面板中有一个矩形和该矩形移位操作后的图形,任选其中一个单选按钮

2、则图形面板中将显示该操作后的图形,如图所示。 (分数:33.00)_3.本程序的功能是获得系统剪贴板中的内容。程序窗口中有一个文本域和两个按钮:“复制”和“粘贴”,在文本域中输入文本,选取一部分文本后单击“复制”按钮,被选中的内容被复制到系统剪贴板上,然后单击“粘贴”按钮,系统剪贴板上的内容就插入到文本域中光标的位置,如图所示。 (分数:34.00)_计算机二级 JAVA-82答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是监听鼠标将文件对象拖到程序窗口中。窗口中只有一个文本域,选中一个文件,拖到窗口中后,文本域中将显示该

3、次拖动操作的类型,以及拖动的文件路径及名称(鼠标直接拖动为移动操作,按住 Ctrl键拖动属于复制操作,按住 Ctrl+Shift键拖动属于建立快捷键操作),如图所示。 (分数:33.00)_正确答案:()解析:第 1处:public DropTargetFrame() 第 2处:Class TextDropTargetListener implements DropTargetListener 第 3处:public void dragEnter(DropTargetDragEvent event)2.本程序的功能是对图形进行操作,包括旋转、移位、放大和剪切。窗口中有四个单选按钮和一个图形面板

4、图形面板中有一个矩形和该矩形移位操作后的图形,任选其中一个单选按钮,则图形面板中将显示该操作后的图形,如图所示。 (分数:33.00)_正确答案:()解析:第 1处:class TransformTestFrame extends JFrame 第 2处:class TransformPanel extends JPanel 第 3处:public void paintComponent(Graphics g)3.本程序的功能是获得系统剪贴板中的内容。程序窗口中有一个文本域和两个按钮:“复制”和“粘贴”,在文本域中输入文本,选取一部分文本后单击“复制”按钮,被选中的内容被复制到系统剪贴板上,然后单击“粘贴”按钮,系统剪贴板上的内容就插入到文本域中光标的位置,如图所示。 (分数:34.00)_正确答案:()解析:第 1处:frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) 第 2处:String text = textArea.getSelectedText() 第 3处:clipboard.setContents(selection, null)

展开阅读全文
相关资源
猜你喜欢
  • EN 14073-3-2004 en Office furniture - Storage furniture - Part 3 Test methods for the determination of stability and strength of the structure《办公家具 储存用家具 第3部分 结构的稳定性和强度的测定用试验方法》.pdf EN 14073-3-2004 en Office furniture - Storage furniture - Part 3 Test methods for the determination of stability and strength of the structure《办公家具 储存用家具 第3部分 结构的稳定性和强度的测定用试验方法》.pdf
  • EN 14074-2004 en Office furniture - Tables and desks and storage furniture - Test methods for the determination of strength and durability of moving parts《办公家具 办公桌及贮存柜 移动部件的强度和耐久性测.pdf EN 14074-2004 en Office furniture - Tables and desks and storage furniture - Test methods for the determination of strength and durability of moving parts《办公家具 办公桌及贮存柜 移动部件的强度和耐久性测.pdf
  • EN 14076-2013 en Timber stairs - Terminology《木质楼梯 术语》.pdf EN 14076-2013 en Timber stairs - Terminology《木质楼梯 术语》.pdf
  • EN 14078-2003 en Liquid petroleum products Determination of fatty acid methyl esters (FAME) in middle distillates Infrared spectroscopy method《液化石油产品中间馏份中脂肪酸甲基酯(FAME)的测定红外光谱法》.pdf EN 14078-2003 en Liquid petroleum products Determination of fatty acid methyl esters (FAME) in middle distillates Infrared spectroscopy method《液化石油产品中间馏份中脂肪酸甲基酯(FAME)的测定红外光谱法》.pdf
  • EN 14079-2003 en Non-active medical devices - Performance requirements and test methods for absorbent cotton gauze and absorbent cotton and viscose gauze《非放射性的医疗装置 脱脂纱布 脱脂棉和脱胶纱布的性能.pdf EN 14079-2003 en Non-active medical devices - Performance requirements and test methods for absorbent cotton gauze and absorbent cotton and viscose gauze《非放射性的医疗装置 脱脂纱布 脱脂棉和脱胶纱布的性能.pdf
  • EN 1408-2008 en Chemicals used for treatment of water intended for human consumption - Poly (diallyldimethylammonium chloride)《饮用水处理用化学试剂 聚二烯丙基二甲基胺盐酸盐》.pdf EN 1408-2008 en Chemicals used for treatment of water intended for human consumption - Poly (diallyldimethylammonium chloride)《饮用水处理用化学试剂 聚二烯丙基二甲基胺盐酸盐》.pdf
  • EN 14080-2013 en Timber structures - Glued laminated timber and glued solid timber - Requirements《木质结构 胶合分层木质品及胶合固体木质 要求》.pdf EN 14080-2013 en Timber structures - Glued laminated timber and glued solid timber - Requirements《木质结构 胶合分层木质品及胶合固体木质 要求》.pdf
  • EN 14081-1-2016 en Timber structures - Strength graded structural timber with rectangular cross section - Part 1 General requirements《木材结构 矩形截面的强度等级结构木材 第1部分 要求》.pdf EN 14081-1-2016 en Timber structures - Strength graded structural timber with rectangular cross section - Part 1 General requirements《木材结构 矩形截面的强度等级结构木材 第1部分 要求》.pdf
  • EN 14081-2-2010 en Timber structures - Strength graded structural timber with rectangular cross section - Part 2 Machine grading additional requirements for initial type testing (I.pdf EN 14081-2-2010 en Timber structures - Strength graded structural timber with rectangular cross section - Part 2 Machine grading additional requirements for initial type testing (I.pdf
  • 相关搜索

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

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