资源简介
人事管理系统java+sql,可作为参考,适用于新手

代码片段和文件信息
package manpowersystem;
//download by http://www.codefans.net
import java.util.*;
import java.awt.*;
import javax.swing.*;
public class Clock extends JPanel implements Runnable {
boolean keepRunning = true;
int lastxs = 0 lastys = 0 lastxm = 0 lastym = 0 lastxh = 0 lastyh = 0;
Date dummy = new Date();
String lastdate = dummy.toLocaleString();
String myName;
public Clock( String inName ) {
myName = new String( inName );
}
public void plotpoints( int x0 int y0 int x int y Graphics g ) {
g.drawLine( x0 + x y0 + y x0 + x y0 + y );
g.drawLine( x0 + y y0 + x x0 + y y0 + x );
g.drawLine( x0 + y y0 - x x0 + y y0 - x );
g.drawLine( x0 + x y0 - y x0 + x y0 - y );
g.drawLine( x0 - x y0 - y x0 - x y0 - y );
g.drawLine( x0 - y y0 - x x0 - y y0 - x );
g.drawLine( x0 - y y0 + x x0 - y y0 + x );
g.drawLine( x0 - x y0 + y x0 - x y0 + y );
}
public void circle( int x0 int y0 int r Graphics g ) {
int x y;
float d;
x = 0;
y = r;
d = 5 / 4 - r;
plotpoints( x0 y0 x y g );
while ( y > x ) {
if ( d < 0 ) {
d = d + 2 * x + 3;
x++;
}
else {
d = d + 2 * ( x - y ) + 5;
x++;
y--;
}
plotpoints( x0 y0 x y g );
}
}
public void paintComponent( Graphics g ) {
super.paintComponent( g );
int xh yh xm ym xs ys s m h xcenter ycenter;
String today;
Date dat = new Date();
s = dat.getSeconds();
m = dat.getMinutes();
h = dat.getHours();
today = dat.toLocaleString();
xcenter = getWidth() / 2;
ycenter = getHeight() / 2 - 10;
xs = ( int ) ( Math.cos( s * 3.14f / 30 - 3.14f / 2 ) * 35 + xcenter );
ys = ( int ) ( Math.sin( s * 3.14f / 30 - 3.14f / 2 ) * 35 + ycenter );
xm = ( int ) ( Math.cos( m * 3.14f / 30 - 3.14f / 2 ) * 30 + xcenter );
ym = ( int ) ( Math.sin( m * 3.14f / 30 - 3.14f / 2 ) * 30 + ycenter );
xh = ( int ) ( Math.cos( ( h * 30 + m / 2 ) * 3.14f / 180 - 3.14f / 2 ) *
20 + xcenter );
yh = ( int ) ( Math.sin( ( h * 30 + m / 2 ) * 3.14f / 180 - 3.14f / 2 ) *
20 + ycenter );
g.setFont( new Font( “TimesRoman“ Font.PLAIN 14 ) );
g.setColor( Color.green );
circle( xcenter ycenter 40 g );
g.setColor( new Color( 0 0 200 ) );
g.drawString( “9“ xcenter - 35 ycenter + 3 );
g.drawString( “3“ xcenter + 30 ycenter + 3 );
g.drawString( “12“ xcenter - 5 ycenter - 27 );
g.drawString( “6“ xcenter - 3 ycenter + 35 );
g.setColor( Color.red );
if ( xs != lastxs || ys != la
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
----------- --------- ---------- ----- ----
1656357 190
相关资源
- JSP企业人事管理系统设计(源代码+论
- java 人事管理系统 课程设计
- java小作业 人事管理系统
- JSP +SQL的人事管理系统
- 毕业设计-医院人事管理系统(源码
- JSP人事管理系统(毕业设计)
- 【Java】人事管理系统.zip212707
- jsp+servlet+mysql企业人事管理系统16438
- jsp+servlet+mysql企业人事管理系统
- 简易人事管理系统282438
- 人事管理系统 高校人事管理系统
- 课程设计之人事管理系统Android应用源
- java源代码 人事管理系统
- 人事管理系统源码(三套不同的)
- 基于Java的企业人事管理系统
- JavaWeb人事管理系统开题报告、论文、
- 面向对象实习企业人事管理系统java
- 人事管理系统JSP+Struts2框架
- 一个简单的javaweb人事管理系统实现案
- 人事管理系统1
- 基于Java的企业人事管理系统源代码
- 基于Oracle10g 使用java编写的人事管理系
- Java人事管理系统源码+论文+答辩PPT
- Android应用源码课程设计之人事管理系
- java+sql sever人事管理系统
- 企业人事管理系统系统+文档java+orac
- Java 人事管理系统源代码+详细设计文
- swt人事管理系统.zip
- jsp+servlet人事管理系统
- 基于android的人事管理系统
评论
共有 条评论