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

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

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

  • 各种技术的例子,包括杆、蛋糕、时区、平面、立体等…
    jfreechart的各种例子都有 包括:柱形图、折线图、饼图、时区图等 可以进行各种数据的对比,平面图和立体图都有。-all kinds of jfreechart examples,include of pole,cake,time zone,plane,solid etc.this can campare all kinds of number.
    2022-05-21 17:17:38下载
    积分:1
  • js summary calendar, easy
    js摘要日历,代码易读,可以添加到自己的页面
    2022-05-25 15:23:30下载
    积分:1
  • java中实现在Bean中连接URL 
    java中实现在Bean中连接URL -achieve the linking URL Bean
    2022-04-10 14:41:27下载
    积分:1
  • prepared with the notebook, the notebook features are ready.
    用java编制的记事本,记事本的功能都具备了。-prepared with the notebook, the notebook features are ready.
    2023-05-22 13:45:02下载
    积分:1
  • 一系列实现JDBC的演示类
    一系列实现JDBC的演示类-achieve a series of demonstration categories JDBC
    2022-01-25 15:22:44下载
    积分:1
  • 用jdom解析xml , 需要用到jar包jdom.jar
    用jdom解析xml , 需要用到jar包jdom.jar-Xml parsing using jdom
    2023-07-23 19:30:03下载
    积分:1
  • General Static Page Generation System Engineer v.1
    通用静态页面生成系统Engineer v.1-General Static Page Generation System Engineer v.1
    2022-05-06 13:32:02下载
    积分:1
  • an increase in ibatis delete modify search small example. may be helpful to get...
    ibatis的增加删除修改查找的小例子.可能对入门的朋有帮助!-an increase in ibatis delete modify search small example. may be helpful to get into a friend!
    2022-06-16 02:36:50下载
    积分:1
  • 手机java拼图。java拼图游戏可以运行在移动设备上的…
    Java拼图游戏手机版。这款java拼图游戏可以在手机上运行。源文件需要用eclipse打开,在eclipse左侧资源管理器中右键导入,然后选择现有项目到工作区中,点下一步,在选择根目录中选择压缩包解压后的目录,单击完成即可。用eclipse新建项目、新建源文件夹src及对应三个类、新建文件夹pic,与src同目录,放置图片。-Mobile Java jigsaw puzzle. The java jigsaw puzzle can be run on mobile devices. Source files need to use eclipse open eclipse on the left in the Explorer right to import, and then select an existing project to the work area, point the next step, the choice of the root directory choose the directory after extracting archive, click can be completed. New Project with the eclipse, the new source folder src and the corresponding three classes, the new folder, pic, with the same src directory, and place images.
    2022-11-21 11:00:03下载
    积分:1
  • LyBBS Lingyun Forum]
    LyBBS『凌云论坛』-LyBBS Lingyun Forum]
    2022-04-16 13:37:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载