登录
首页 » Java » 时钟 走动

时钟 走动

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

  • 239Java基于SSM网上试衣间设计
    说明:  目的能在系统上完成简单的试衣效果,传输身高体重数据,在系统上显示试穿衣服的视频效果。(Objective to achieve a simple fitting effect on the system, transfer height and weight data, and display the video effect of fitting on the system.)
    2019-11-28 16:55:57下载
    积分:1
  • lda-0.2-matlab
    暂时放置在java中 lda的 还是不错的(lda em matlab)
    2014-09-28 17:33:09下载
    积分:1
  • kaoshi
    j2ee登陆界面 输入用户名和密码登陆 (login start if you must write your nameand password first)
    2013-12-05 21:34:33下载
    积分:1
  • Rtreejava
    java实现R树空间索引,包含3个测试文件(rtree is completed by java)
    2020-12-01 19:19:27下载
    积分:1
  • SSH整合循序渐进
    这是关于servlet,jsp,mvc,hibernate等整合的一个教程(This is a tutorial on servlet, jsp, mvc, hibernate, etc.)
    2019-04-19 09:34:06下载
    积分:1
  • java学生成绩管理系统源码(txt文件数据库)
    利用文件实现数据存取的学生成绩管理系统
    2019-03-14下载
    积分:1
  • JavaVPN 更正版)
    java实现vpn连接,有测试例子,调用dll(Java to achieve VPN connection, there are test examples, call DLL)
    2017-08-23 09:00:29下载
    积分:1
  • HR
    人事综合管理系统 非web开发 仅供学习参考(Personnel management system non-web reference for the study)
    2013-04-27 16:10:23下载
    积分:1
  • Vooga-master
    说明:  该项目的主要目的是使自己熟悉如何使用Golden T游戏框架以及在该框架中构建游戏的困难。因此,该游戏不必是有史以来最出色的游戏,但它必须满足一些基本要求: 1.游戏应是特定类型的视频游戏的可识别成员。我选择构建一个类似于TI-83计算器游戏BlockDude的拼图平台游戏。 2.游戏不一定是完整的,但您应该拥有在游戏中随处可见的角色,玩家应该可以与游戏互动(控件可能是粗糙的),并且您至少应拥有几个游戏的比喻。例如,实时策略游戏可以让您放置可以建造单位的建筑物,RPG可以进行基本的回合制战斗,等等。 3.游戏应具有两个不同的游戏“模式”或两个不同的级别。带有“开始游戏”之类的游戏菜单不算作一种模式。所谓“级别”,是指两个玩起来不同的级别-不仅是坏家伙更多,或者坏家伙更快。 4.专注于游戏机制,而不是图形,对话框或其他任何内容。您的游戏可以使用简笔图形或从现有游戏中窃取的粗裁图像。只需确保图像足够可识别即可,以便我们可以判断您的游戏中发生了什么。(The main point of this project was to familiarize ourselves with how to use the Golden T game framework and the difficulties of building a game in that framework. As a result, the game did not need to be the greatest ever created but it did have to meet a few basic requirements:)
    2020-03-14 12:35:02下载
    积分:1
  • HTSK
    早期编写的一个网通的网关程序,跟网通CNGP交互,能收发短信,群发等。我以前公司用了2年多,经测试,好用,稳定(Early preparation of a Netcom' s gateway program, with China Netcom CNGP interaction, can send and receive text messages, mass and so on. I had the company spent two years, tested, easy to use, stable and)
    2010-01-12 12:16:46下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载