登录
首页 » Java » 时钟 走动

时钟 走动

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

  • Calculator
    一个简单的计算器实现,带小数的加减乘除。使用Java AWT/Swing实现(Implement a simple calculator, decimal addition and subtraction)
    2013-10-05 11:42:48下载
    积分:1
  • Java_zinengka_youhua
    说明:  针对复杂的传统Java智能卡指令解析问题,结合Applet的部署特点,提出了指令预解析的概念 给出了转换后的Applet文件(CAP,Converted Applet file)中导入组件、常数池和导出组件的预解析优化存储结构及包注册表结构,使用定长存储结构替代原有的变长存储结构以加快查找过程,引入了导出组件辅助索引表以加快外包类的解析过程 设计了基于优化后组件的静态域、静态方法和类访问字节码指令的快速解析流程,将解析算法的时间复杂度降为常数阶 在Applet下载过程中通过预解析来生成优化后的组件存储结构,在执行过程中依据快速解析流程来完成静态域、静态方法和类对象的快速访问,从而缩短了Applet运行时的解析时间.测试结果表明,在不改变标准Applet下载、运行流程的情况下,该方法有效地减少了卡内存储器的访问次数,缩短了解析算法的执行时间,提高了Applet执行的整体性能. (For a complex of traditional Java smart card command parsing problems with the Applet deployment characteristics of proposed pre-analytic concept of instruction gives converted Applet file (CAP, Converted Applet file) to import components and export components of constant pool pre-analytical optimization of storage structure and package the registry structure, and the use of fixed-length storage structure replaced the original variable-length storage structure to speed up the search process, the introduction of secondary index table to export components to speed up the resolution process outsourcing category designed based on optimization After the components of the static fields, static methods and class byte code instructions to access the rapid resolution processes, analytical methods will be reduced to constant time complexity order in Applet download process through pre-parsing to generate the optimized storage structure components , in the implementation process based on rapid)
    2010-03-21 12:42:59下载
    积分:1
  • JapaneseVowels
    说明:  数据挖掘的应用,对数据集建立决策树,然后利用测试集中的数据判断测试。并给出最终的决策判断的正确率。(The application of data mining, decision tree on the data set, and then use the test to determine the test data set. The final decision making given the correct rate.)
    2011-04-11 21:55:07下载
    积分:1
  • virtqal
    一个关于系统的JAVA源码 里面有详细的说明和模拟售票系统程序(A system about JAVA source with detailed instructions and simulate the ticketing system program)
    2017-03-18 16:22:58下载
    积分:1
  • des
    说明:  stock quant trade for chinese A market, this is a test.
    2020-06-20 07:40:01下载
    积分:1
  • Mouse
    实现在TextArea中输出最后一次鼠标单击的x,y坐标和连续单击的次数。(In the output of the TextArea realize the last time the mouse click of the x, y and continuous click on the number of times.)
    2012-05-14 12:53:43下载
    积分:1
  • onlychi
    说明:  自己系统开发,用与学习和后面项目的开发,主要集成springboot(Develop your own system, use and learn, and develop later projects, mainly inherit spring boot)
    2019-03-15 11:28:41下载
    积分:1
  • java-siger
    java使用siger 获取服务器硬件信息(CPU 内存 网络 io等)(java siger get cpu memory net information)
    2015-07-09 09:44:02下载
    积分:1
  • 基于springboot2 shiro jwt的真正rest api资源无状态认证权限管理框架
    基于springboot2+ shiro+jwt的真正rest api资源无状态认证权限管理框架,开发人员无需关注权限问题,后端开发完api,前端页面配置即可(Based on the real rest API resource stateless authentication permission management framework of spring boot 2 + Shiro + jwt, developers do not need to pay attention to permission issues. after the API is developed, the front-end page configuration can be completed.)
    2020-06-19 11:40:02下载
    积分:1
  • dfatricleb0820
    将原来的两级分类改成无限级分类 新增栏目排序、移动、合并功能 新增外部栏目、推荐栏目功能 新增版面设计模板功能 新增配色模板功能 新增专题排序、合并功能 新增网站频道功能 新增登录IP记录功能(The original two classifications into unlimited classification New columns sort, move, merge function Add external columns, column recommended function New layout templates New color templates New thematic sort, merge function New website features channel New Login IP History )
    2016-03-08 21:22:08下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载