登录
首页 » Java » 时钟 走动

时钟 走动

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

  • complex
    编写一个复数类,可以进行复数加法和减法运算。编写一个包含main方法的类(应用程序)测试该复数类。要求该复数类至少包含一个无参的构造方法和一个带参的构造方法;数据成员包括复数的实部和虚部,为double类型;包括两个方法,分别实现复数的加法和减法运算。(Write a complex class, which can add and subtract complex numbers. Write a class (application) containing the main method to test the complex class. The complex class is required to include at least one parametric construction method and one parametric construction method; the data members include the real and imaginary parts of the complex, which are of double type; and two methods are included to realize the addition and subtraction operations of the complex respectively.)
    2019-04-13 20:31:45下载
    积分:1
  • web
    通过struts2作为web端,实现文件上传,并将上传的文件存入hadoop的HDFS中,可以对上传的文件进行操作(hadoop2.2 struts2 upload)
    2015-01-27 16:47:13下载
    积分:1
  • b1b1173126c0
    人事管理系统,专门做人事管理,增删改查人员信息,账号绑定(Personnel management system, specializing in personnel management, adding, deleting and modifying personnel information, account binding)
    2020-06-24 21:00:01下载
    积分:1
  • session
    关于JavaEE初级的会话管理的实例,主要介绍基础方法(JavaEE session management on the primary instance, introduces the basic methods)
    2011-04-20 18:45:18下载
    积分:1
  • testGps
    此段JAVA程序的功能是利用SOCKET编程实现两太计算机之间的通信(This JAVA program)
    2008-03-27 16:06:05下载
    积分:1
  • ATMjava
    建议的模拟银行存款操作,取款操作以及查询相应的余款(Simulation of the proposed operation of bank deposits, cash operating balance, as well as the corresponding query)
    2009-05-14 20:05:49下载
    积分:1
  • PLSQL
    run sql script with java
    2011-08-26 18:14:13下载
    积分:1
  • 2003814983546
    一个支持servlet的web服务器 (The web server that supports servlet)
    2010-01-03 10:29:53下载
    积分:1
  • regress-89443
    Just seeing if this script will compile without stack overflow.
    2014-02-09 13:16:50下载
    积分:1
  • jBox
    仿腾讯QQ空间的DIV窗口,淡蓝色风格看上去很漂亮,不过源代码扣下来相当麻烦,这里使用jQuery的一款插件jBox来修改代替,效果还算行吧,它有两种方式调用 ,第一种是iframe,就是把另一个页面嵌入到div窗口中来;另一种是控制div标签,你可将显示的内容写到DIV标签内,然后在JS中引入需要控制的DIV ID号就行了。(Imitation Tencent QQ space DIV window, light blue style looks very nice, but the source code is quite troublesome buckle down, here s a plug jBox use jQuery instead to modify the effect is fairly okay, there are two ways to call it, the first one is the iframe, is to another page to embed div window the other is to control the div tag, you can display the contents written in the dIV tag, then the introduction of the need to control the dIV ID number on the line in JS a.)
    2015-02-07 15:07:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载