登录
首页 » Java » 时钟 走动

时钟 走动

于 2020-06-19 发布
0 410
下载积分: 1 下载次数: 1

代码说明:

说明:  一个应用线程实现指针运动的指针时钟程序。程序应用绘制函数时钟面板,根据线程休眠时间间隔,每隔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 个回复

  • javaStudy
    小弟自己复习java时候整理的文档,其中包括基础的面向对象的知识及设计模式相关的介绍!适合有一定基础的朋友复习用!(Younger brother when their java collate review documents, including basic object-oriented knowledge and design patterns related to the introduction! Have some basis for review by a friend!)
    2008-04-27 19:26:30下载
    积分:1
  • 809420
    在java中实现2个线程之间的死锁,即程序始终不终止,但也仍在运行()
    2018-02-10 21:16:13下载
    积分:1
  • java_course
    本人学习JAVA初期,练习课本程序时,将老师上课代码手敲进电脑,有一点价值吧,供新手使用(When I learn early JAVA, exercise books program, the teacher in the class code is hand knocked into the computer, it has little value for the novice to use)
    2016-06-29 12:56:33下载
    积分:1
  • SearchableActivity
    ClassTest extends junit.framework.TestCase.
    2014-01-08 10:46:12下载
    积分:1
  • Manual.Curso.de.java.desde.cero
    Libro de java, contiene un programa extenso que abarca la programacion de java.
    2011-05-12 23:32:44下载
    积分:1
  • java职工信息管理系统源代码(精)
    说明:  非swing实现,通过在控制台选择相应序号来实现职工的增删改查(Thaks for your download)
    2020-06-11 19:30:12下载
    积分:1
  • XWeb
    jxta应用的一个范例(an example of JXTA applications)
    2004-06-10 16:56:08下载
    积分:1
  • jess-and-java
    java与jess相关资料 学习专家系统的同仁们看 很好学哦(java jess information learning expert system colleagues look good to learn Oh)
    2012-10-17 20:16:05下载
    积分:1
  • DownLoad(java流实现下载功能)
    用java实现文件下载,通过使用用该类可以下载不同类型的文件。(with java download files through the use of such use can be downloaded for different types of documents.)
    2005-08-12 16:37:24下载
    积分:1
  • ClockTest
    JAVA写的时钟小程序,刚学JAVA给自己个小鼓励(JAVA applet to write the clock, just learning JAVA to their own small to encourage)
    2009-05-17 15:37:03下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载