登录
首页 » Java Develop » 演示了处理鼠标事件的基本作法,为获取鼠标事件的名称和坐标值,特意定义了一个函数SetValues(),返回鼠标事件名称s,坐标值xPos,yPos。作为最直观的...

演示了处理鼠标事件的基本作法,为获取鼠标事件的名称和坐标值,特意定义了一个函数SetValues(),返回鼠标事件名称s,坐标值xPos,yPos。作为最直观的...

于 2022-03-14 发布 文件大小:1,016.00 B
0 204
下载积分: 2 下载次数: 1

代码说明:

演示了处理鼠标事件的基本作法,为获取鼠标事件的名称和坐标值,特意定义了一个函数SetValues(),返回鼠标事件名称s,坐标值xPos,yPos。作为最直观的表示,随着鼠标的动作,在paint()立即显示鼠标事件的名称和坐标值。在这个基础上稍加改动,当拖动鼠标时,在其移动路径上连续地留下一系列的小圆点。当点击鼠标后,在其位置上画一个红色小十字。-demonstration of the mouse handle basic approach to mouse events access the names and coordinates, specifically defines a function SetValues (), to name s mouse events, coordinates xPos, yPos. As the most intuitive, as the mouse moves, the paint () immediately showed the mouse names and coordinates. On this basis is modified, when the Drag, on his mobile straight path, leaving a series of small dots. When the click of a mouse, in its place painted a small red cross.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一个好的初学编程的Eclipse的数据,可以迅速帮助你了解OV…
    初学eclipse编程的好资料,可以很快帮助你了解eclipse的整体架构-A good beginner programming eclipse data, can quickly help you understand the overall framework for eclipse
    2022-06-27 04:18:32下载
    积分:1
  • 清华教科书上的非常好的原代码
    清华教科书上的非常好的原代码-Qinghua textbooks in a very good source
    2022-01-26 00:23:37下载
    积分:1
  • 宠物医院的小项目,,代码希望大家能用到
    宠物医院的小项目,,代码希望大家能用到 -PET
    2022-02-06 08:39:42下载
    积分:1
  • Hibernate m2m
    Hibernate实现的一个多对多双向关联的实例。适合初学者理解。-Hibernate m2m
    2023-03-18 08:50:03下载
    积分:1
  • 这是一本热爱java的人都难以拒绝的一本好资料,既可以作为工具书来使用,但更是一部精研java的宝典...
    这是一本热爱java的人都难以拒绝的一本好资料,既可以作为工具书来使用,但更是一部精研java的宝典 -this is a classical book for each person fond of java
    2023-02-17 21:50:03下载
    积分:1
  • 一个不错的储藏ATM机上的事物的详细信息的应用
    一个不错的储藏ATM机上的事物的详细信息的应用-a good storage ATM machine on the matter of detailed information Application
    2022-08-20 03:35:06下载
    积分:1
  • java多线程银行家业务模拟实现 软件说明: 运行环境:windows ,linux 安装有jdk 开发工具:jbuild2006...
    java多线程银行家业务模拟实现 软件说明: 运行环境:windows ,linux 安装有jdk 开发工具:jbuild2006 使用说明:界面操作 简单明了 软件简要说明:本软件使用的java多线程开发,基本地模拟实现银行业务服务。-java multithreaded bankers business simulation software Note : Operating environment : windows, linux installation jdk Tools : jbuild2006 use : understand simple interface software Brief Description : The software used by the java multithreaded development, basically simulation banking services.
    2022-01-28 05:35:42下载
    积分:1
  • Java与模式 Java与模式
    Java与模式 Java与模式-Java and Java with model model
    2023-07-31 09:40:03下载
    积分:1
  • for beginners exercises include AWT small programs, list and map more than 100 g...
    适合初学者练习 包括awt小程序、list和map群体等100多个java程序-for beginners exercises include AWT small programs, list and map more than 100 groups java procedures
    2022-05-24 18:28:26下载
    积分:1
  • Jive (J Road version) Jive (J Road version) is version 2.1 of the Jive adapted o...
    Jive(J道版) Jive(J道版)是在Jive 2.1版本基础上改编而成,增加一些功能,更加实用,本下载包中包括源程序,你可以修改为你自己的网站定制。 学习Jive源程序,可以更好的理解和应用设计模式,学习Java必须读懂两套源代码,第一个就是Jive 第二个是Sun的宠物店Pet Store. 关于Jive,道友yesky12一段话非常精辟: 设计模式和面向对象的思想是java学习的内功,而jive无疑是九阴真经。 Jive论坛的优点是由于采用缓冲机制,可以承受巨大访问量,同时能保持快速反应,在国外站点采用很多。Jive从2.5以后就不再无条件的开放源代码,同时有licence限制。 Jive(J道版)包括完整的源程序和可直接运行的配置,Jbuilder7可直接打开,本版本不但取消了licence的限制,同时增加了jive高版本的内容,努力把Jive建成一个功能更强大的虚拟社区软件。-Jive (J Road version) Jive (J Road version) is version 2.1 of the Jive adapted on the basis of which, some additional functions, more practical, the download package includes source code, you can modify for your own customized Web site. Learning Jive source, we can better understand and application design patterns, learning Java must understand two sets of source code, a Jive is the second of Sun"s pet Pet Store. On Jive, Friends Road yesky12 very incisive words : design patterns and object-oriented thinking of java study the internal organs, and jive is no doubt but his form is signed. J
    2023-06-03 14:40:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载