登录
首页 » Java » 时钟 走动

时钟 走动

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

  • GetDate
    Get now date and time easily by using Java s API:java.text.SimpleDateFormat and java.util.Calendar.
    2015-08-24 16:46:21下载
    积分:1
  • tutorial
    JAAS的简单应用示例,其中运行方式简单只需要拷贝到JAVA工程的src目录下就可以运行。本代码的编写依照JAAS的官方手册编写完成。(JAAS simple application example, which requires only a simple copy operation mode to the JAVA project s src directory, you can run.)
    2011-07-24 21:37:17下载
    积分:1
  • 3.0.0
    说明:  idot know what this is
    2019-12-17 22:42:10下载
    积分:1
  • 家政
    家政服务小程序。适合预约上门家政服务项目店铺使用(Housekeeping Service Procedure)
    2020-10-19 21:37:25下载
    积分:1
  • Exe3_3
    3.设计一个能够描述点(point)、线(line)、圆(circle)、矩形(rectangle)和三角形(triangle)等几何形状的类体系,能够计算不同形状的周长和面积(如果能够定义的话)。程序文件命名为Exe3_3.java。(3. Design a point can be described (point), line (line), circle (circle), class hierarchy rectangle (rectangle) and the triangle (triangle) and other geometric shapes, different shapes can calculate perimeter and area (if you can define if). Program file named Exe3_3.java.)
    2015-10-23 19:30:11下载
    积分:1
  • kkt-containing
    jxta平台的开发包,2,4版本,含有源代码,所需要的其他的开发包等(Development kit for the jxta platform, version 2 / 4, containing source code, other development kits needed, etc.)
    2018-09-16 04:10:58下载
    积分:1
  • dianzijiaoan
    这是一个关于JAVA的很好的教案,是学习这一领域知识不可多得的资料。(This is a very good lesson plans JAVA is a rare study of knowledge in this field of information.)
    2010-06-11 15:58:17下载
    积分:1
  • HibernateResearch_V1.0
    reseach ve hibernate reseach ve hibernate
    2011-06-03 16:42:56下载
    积分:1
  • ATM
    编写一个控制台程序,模拟在ATM机的存款和取款过程,当输入给定的卡号和密码(初始卡号和密码到数据文件里查看)时,系统能登录ATM系统,根据用户的身份不同显示不同的程序界面;取款   每次取款金额只能为100的倍数,总额不超过2000元,不允许透支。且取款之后,要记录取款的金额和时间。 存款   每次存款金额只能为100的倍数,总额不超过2000元。 修改密码   新密码长度不小于6位,不允许出现6位完全相同的情况,只有旧密码正确,新密码符合要求,且两次输入相同的情况下才可以成功修改密码。(Write a console program to simulate the ATM deposits and withdrawals process, when you enter a given number and password (the initial number and password to the data file view), the system can log in ATM systems, according to the user' s identity different display different The program interface withdrawal amount each withdrawal can only be a multiple of 100, the total does not exceed 2,000 yuan, does not allow overdrafts. And withdrawals after the withdrawal of the amount to be recorded and time. Deposit Amount per Deposit only a multiple of 100, totaling no more than 2,000 yuan. Change Password New Password length not less than six, allowed six identical situation, only the old password is correct, the new password meets the requirements, and enter the same case twice before they can successfully change the password.)
    2013-10-14 22:50:17下载
    积分:1
  • EmptyImmutableListMultimap
    Implementation of with no entries.
    2014-01-22 14:17:28下载
    积分:1
  • 696518资源总数
  • 105549会员总数
  • 12今日下载