登录
首页 » Java » 时钟 走动

时钟 走动

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

  • Impl_RowSet
    add Row Set Listener Source Code for Andriod.
    2013-12-13 14:50:27下载
    积分:1
  • java-jar
    java jar文件,包括mysql-connector-java-5.1.6-bin.jar、tomcat-dbcp.jar、hibernate3.jar、struts.jar等,在连接数据库等方面会用到(java jar files, including mysql-connector-java-5.1.6-bin.jar, tomcat-dbcp.jar, hibernate3.jar, struts.jar, etc., will be used to connect the database, etc.)
    2011-06-20 20:34:44下载
    积分:1
  • JDBCDemo123
    ODBC数据库连接,用javq做的(ODBC database connectivity, with javq do )
    2007-06-15 18:29:46下载
    积分:1
  • aa
    说明:  本书系统地介绍了SWT、Draw2D、GEF、JET 等与Eclipse 插件开发相关的基础知识,并且以实际的开发案例来演示 这些知识的实战性应用,通过对这些实际开发案例的学习,读者可以非常轻松地掌握Eclipse插件开发的技能,从而开发出满 足个性化需求的插件(Case to demonstrate the actual development of these practical application of knowledge through the development of these practical case study, the reader can very easily grasp Eclipse plug-in development skills to develop products that meet the individual needs of the plug-in.)
    2014-02-20 12:59:02下载
    积分:1
  • BUS
    公交查询系统 Android studio(Bus search system can used by Android studio)
    2019-01-11 17:08:28下载
    积分:1
  • StoryOf1001_JB
    一款运行于手机的Java游戏神灯传奇源代码,调试时最好在Eclipse下运行,需要相对应的手机类库,所有用到的图像资源已打包进源码包,欢迎学习JAVA游戏编程的朋友研究。(A Java mobile phone games running on the Magic Lamp legendary source code, debugging is best run in the Eclipse needs the corresponding phone library, all the images used in resources have been packaged into the source package, welcome to learn JAVA Game Programming friends study.)
    2009-10-12 16:02:39下载
    积分:1
  • downLoad
    运用JavaWeb中多线程的知识完成,实现文件的多线程下载,其中可选择下载时线程的数量,暂停下载,以及删除下载任务等。(Completion of the knowledge using JavaWeb multi-threaded, multithreaded file download, which can choose to download the number of threads, pause a download, as well as remove the download task.)
    2013-03-06 15:57:50下载
    积分:1
  • MyEclipse6Chinese-tutorial
    Myeclipse中文教程,详细的介绍了集成开发环境的各项功能,对于学习Myeclise的学习者,将会有很的帮助(Myeclipse Chinese tutorial describes in detail the various functions of an integrated development environment for learning Myeclise learners, there will be very help)
    2011-09-05 17:02:49下载
    积分:1
  • 争锋神武
    说明:  千年3大千登陆器,下载后解压到客户端就可以用。(daqiandengluqideganhuo)
    2019-04-24 22:03:10下载
    积分:1
  • N
    说明:  字体,可以进行适当的拓展。作为java编程中的类。(Fonts, you can make the appropriate expansion. As a java programming class.)
    2011-06-25 17:29:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载