登录
首页 » Java » 时钟 走动

时钟 走动

于 2020-06-19 发布
0 950
下载积分: 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 个回复

  • ssd7_Ex4
    this is answer for ssd7 exercise 4
    2013-10-13 17:34:41下载
    积分:1
  • FileManager
    JAVA写的文件管理,eclipse项目源文件及可运行的jar文件(file manager)
    2009-11-17 16:08:32下载
    积分:1
  • Java_class
    说明:  Java的ppt课程和大学的Java书籍(Ppt Java, Java books and university courses)
    2010-04-15 16:44:13下载
    积分:1
  • FTPClient
    说明:  java 写的一个ftp客户端!可以运行ssh!!!(write a java ftp client! Can run ssh! ! !)
    2010-04-28 19:39:31下载
    积分:1
  • WebSpider_src
    一系列实验参考资料,希望对大家有点参考价值.是用JAVA编写的(series of experiments reference, in the hope that right we are a bit reference value. Java is used to prepare the)
    2007-03-27 23:56:08下载
    积分:1
  • people_shapefile
    一个repasts的例子,在gis环境加入agent,并使得agent移动(Example of a repasts, gis environment in the accession agent, and makes the mobile agent)
    2009-05-08 11:46:30下载
    积分:1
  • JavaEE_orderItem
    JavaEE订餐项目的功能:用户登录、用户注册、添加订餐信息、查询订餐、结算、权限验证(For reservations, please JavaEE project functions: user login, user registration, add the reservation information, inquiries, reservation, settlement, permission to verify)
    2009-01-14 06:35:20下载
    积分:1
  • dds
    实现用户登录界面,方便用户查找自己的信息。节省时间。(To realize the user login interface, convenient for user to find their own information. To save time. )
    2013-12-27 16:01:07下载
    积分:1
  • PruebaJScrollPane
    Esto es un ejemplo de como usar el JScrollPane
    2015-09-17 22:01:20下载
    积分:1
  • SSH
    使用MVC+三大框架实现的项目,非常适合刚学习三大框架或者网站开发的新手学习(Use MVC+ three frameworks to achieve project very suitable for just learning the three framework or website development novice learning)
    2013-04-11 16:27:58下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载