登录
首页 » Java » 时钟 走动

时钟 走动

于 2020-06-19 发布 文件大小:19KB
0 153
下载积分: 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 个回复

  • jkl
    some program I was working on
    2017-10-07 08:48:09下载
    积分:1
  • weiqi-415
    说明:  JAVA编写的具有初步走棋功能的围棋程序。(JAVA CODE FOR WEIQI)
    2009-08-26 11:33:13下载
    积分:1
  • JAVACOM3
    java for RS232,use java communication api(java for RS232, use java communication api)
    2008-12-13 14:25:52下载
    积分:1
  • a2
    Java简单小程序,album管理系统,JDBC的应用(Simple Java applet, album management system, JDBC applications)
    2013-08-04 18:33:48下载
    积分:1
  • java
    java
    2013-06-08下载
    积分:1
  • baohao_Number
    说明:  Java数字语音报号程序及资源文件,包括了全部的数字语音文件(Java digital voice report program and resource files, including all digital voice files)
    2020-06-07 08:45:36下载
    积分:1
  • namednodemapsetnameditemns04
    Document Builder Setting.namespace Aware.
    2014-02-27 10:23:55下载
    积分:1
  • onetoone
    用Hibernate 实现onetoone的例子(with Hibernate example onetoone)
    2007-04-14 16:36:16下载
    积分:1
  • Exe6_3
    这是关于学生选修和老师教学的代码作业。这是java学习类的时候的作业希望对大家有用(This is about teaching the students and teachers of the code elective operations. This is the java class to learn when operating the hope that useful)
    2013-07-02 17:13:59下载
    积分:1
  • CaughtClassMarker
    This InstructionVisitor marks all classes that are used in an instanceof test by any of the instructions that it visits.
    2013-11-28 11:07:04下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载