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

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

于 2022-03-14 发布 文件大小:1,016.00 B
0 132
下载积分: 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 个回复

  • Hibernate m2m
    Hibernate实现的一个多对多双向关联的实例。适合初学者理解。-Hibernate m2m
    2023-03-18 08:50:03下载
    积分:1
  • 一个java小游戏,是模拟撞球游戏做的。
    一个java小游戏,是模拟撞球游戏做的。-a small java games, it is the pool games do. Haha
    2022-03-19 07:28:16下载
    积分:1
  • java与数据库的连接,创建一个数据库中的表表名学生…
    Java与数据库连接,在数据库中建立一个表,表名为学生,其结构为:编号、姓名、性别、年龄、JAVA语言、数据结构、微机原理、总分。在表中输入多条记录。将表每条记录按照总分大到小的顺序显示在屏幕上。查找并显示姓名为“张三”的记录-Java and database connections, create a table in the database table named students, their structures as follows: number, name, sex, age, JAVA language, data structures, computer theory, total score. In the table input multiple records. Each record in accordance with the table total score big to small in the order displayed on the screen. Find and display the name as " San" the record
    2022-07-26 08:52:31下载
    积分:1
  • 一本十分值得学习的java 入门实例教程,详细地讲解初级java的学习之路。...
    一本十分值得学习的java 入门实例教程,详细地讲解初级java的学习之路。-a java book for senior learner.
    2022-06-26 14:40:24下载
    积分:1
  • 自己编写的一个struts的注册应用,很简单,入门的好例子啊
    自己编写的一个struts的注册应用,很简单,入门的好例子啊-their struts prepared by a registered application is very simple, a good example of entry ah
    2023-07-18 20:10:04下载
    积分:1
  • 用Java实现的记忆测试系统的课程设计
    用Java实现的记忆测试系统的课程设计-Implemented with the Java memory test systems curriculum design! ! !
    2022-01-23 11:13:37下载
    积分:1
  • 配合课件学习jsp的网站例子,绝对可以运行,使用sql 2000数据库...
    配合课件学习jsp的网站例子,绝对可以运行,使用sql 2000数据库-With learning courseware site jsp example, can run, use the sql 2000 database
    2022-04-10 20:25:53下载
    积分:1
  • 3D Bluetooth are phone
    都是3D蓝牙联机对战手机游戏,都是很经典的游戏,很值得珍藏,把后缀的.rar去掉,再把文件放到支持蓝牙的手机上就ok了 -3D Bluetooth are phone-line war games, are very classic game, it is worthy of collection, the suffix. Rar removed, and then file into a Bluetooth-enabled mobile phone on the ok
    2022-04-10 07:55:27下载
    积分:1
  • java
    Java 基于tcp的聊天程序 Java 基于tcp的聊天程序-Java-based chat program tcp of Java-based chat program tcp
    2023-06-20 23:20:04下载
    积分:1
  • SleepingBarber的java文件
    SleepingBarber的java文件-the document SleepingBarber
    2023-07-13 02:10:03下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载