登录
首页 » Java » 时钟 走动

时钟 走动

于 2020-06-19 发布 文件大小:19KB
0 158
下载积分: 1 下载次数: 0

代码说明:

  一个应用线程实现指针运动的指针时钟程序。程序应用绘制函数时钟面板,根据线程休眠时间间隔,每隔1000ms进行一次重绘。程序通过获取系统时间函数并加以计算个指针位置,再利用绘制函数将其绘制在面板上,通过设置指针长度及颜色,实现时针、分针、秒针的区分。次外,通过获取窗体大小,设置圆面圆心坐标及半径,可依据窗口大小动态划分圆面大小,并动态绘制刻度点位置。(A pointer clock program that uses threads to implement pointer movement. The program draws the function clock panel and redraws it every 1000ms according to the interval of thread dormancy. The program obtains the system time function and calculates the position of a pointer, then draws it on the panel by drawing function. By setting the length and color of the pointer, it achieves the distinction of clockwise, minute and secondhand. Secondly, by acquiring the size of the form and setting the coordinates and radius of the circle center, the circle size can be dynamically divided according to the size of the window, and the location of the scale points can be dynamically plotted.)

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

发表评论

0 个回复

  • umeng_sdk
    友盟sdk, 包括分享 统计 用户反馈 检查更新等内容(umeng sdk, including the sharing of statistical user feedback to check for updates, etc.)
    2012-10-22 22:27:16下载
    积分:1
  • 推箱子小游戏
    推箱子小游戏。懒羊羊与灰太狼。java实战项目(Push box games. Lazy sheep and Grey Wolf. Java combat project)
    2020-06-20 05:20:02下载
    积分:1
  • W04_TAB
    Arrays in java introduction
    2015-12-22 04:13:59下载
    积分:1
  • How-to_use_JavaSwarm_in_Eclipse
    说明:  怎样在Java中使用Swarm,怎样在Java中使用Swarm(How to use JavaSwarm in Eclipse)
    2011-04-05 15:29:18下载
    积分:1
  • 阿凡提蜂拥控制算法java
    说明:  阿凡提蜂拥控制算法 仿真 无人机集群控制可以学学(Avanti swarm control algorithm simulation UAV cluster control can learn)
    2020-05-21 19:48:02下载
    积分:1
  • java 到sql sever 数据库系统实现 图书管理系统 开发工具eclipse,含java代码,sql代码,课设计word文档。已测试无error~
    java 到sql sever 数据库系统实现 图书管理系统 开发工具eclipse,含java代码,sql代码,课程设计word文档/已测试无error~ 模块功能介绍   2.2.1 管理员模块功能介绍 1.查询图书 此模块可以查询图书   2.借阅图书 此模块可以借阅图书 3.归还图书 此模块的可以归还图书 4.删除图书 此模块可以删除图书 5.添加图书 此模块可以添加图书 6.删除用户 此模块可以删除用户 7.查询用户 此模块可以查询用户   2.2.2 用户模块功能介绍 1.查询图书 此模块可以查询图书 2.借阅图书 此模块可以借阅图书 3.归还图书 此模块的可以归还图书 4.注册 此模块的可以用户注册
    2021-05-06下载
    积分:1
  • JavaConSTK
    Java语言连接访问STK卫星分析工具的源代码,可直接应用到工程中。(STK satellite connection to access the Java language source code analysis tools can be applied directly to the project.)
    2021-04-25 21:48:45下载
    积分:1
  • MicroTankMIDleter
    新手简单模拟的J2ME坦克大战游戏的源代码,代码里有简单注释说明,很有利新手学习。(Novice a simple simulation J2ME Battle City game' s source code, code, there are simple and explanatory notes, it is beneficial to learn novice.)
    2009-09-30 15:04:17下载
    积分:1
  • 1
    说明:  Sprint Getting Started Building a RESTful Web Service
    2020-06-24 01:20:02下载
    积分:1
  • Java2图形设计卷I:AWT
    Java2图形设计卷I:AWT.pdf 详细介绍Java中的AWT(抽象窗口工具集)。主要内容包括同位体、轻量构件、剪贴板与数据传输、颜色、无鼠标操作、打印、布局管理器、国际化、串行化、滚动性、字体与字号以及AWT中的各种构件。(Java2 graphic design volume I:AWT.pdf)
    2017-11-13 20:54:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载