登录
首页 » Java » 时钟 走动

时钟 走动

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

  • DrClient
    java版Drcom宽带认证客户端,配置后认证服务器ip后,可直接使用。(Campus network Dr.COM login client java version, convenient for users to do other platforms to develop and use.)
    2017-12-05 14:04:57下载
    积分:1
  • AirCraft
    自己写的飞行射击游戏模板,基本飞行射击游戏功能实现(Write their own flight shooting game template, the basic function of the realization of flight shooting game)
    2008-05-22 18:21:33下载
    积分:1
  • Test-libary-system
    利用JAVA实现试题库系统,可以自动组卷,内含数据库MDF文件以及实验报告(Realization of database system using JAVA, you can auto generating test paper, embedded database MDF files and test reports)
    2013-12-16 19:23:41下载
    积分:1
  • rgc
    FileInputReader接收键盘输入的字符串,用FileWirter类将字符串写入文件,用FileReader类读出文件内容显示在屏幕上。(FileInputReader receives the keyboard input string, writes the string to the file with the FileWirter class, reads the document content with the FileReader class, displays in the screen.)
    2017-11-15 14:04:25下载
    积分:1
  • java 串口通讯 示例源码
    简单的实现了一般的串口通讯
    2017-09-22下载
    积分:1
  • Excel2003
    java 创建 Excel 2003 文件,很适合新手学习.(java create Excel 2003 files, it is suitable for novice learning.)
    2012-11-16 12:36:21下载
    积分:1
  • 1
    说明:  基于java socket的网络聊天程序(Java socket-based network chat program)
    2008-06-03 11:19:15下载
    积分:1
  • JVm
    用于模拟器安装APK 方便快捷安装 本人分享的源码(Installing APK for simulator)
    2011-11-14 12:25:22下载
    积分:1
  • ICFFCM
    说明:  APPLICATION OF ICFFCM segmentation image
    2019-03-17 20:11:49下载
    积分:1
  • Matrix-substruction
    matrix substraction in rmi java
    2011-05-24 07:01:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载