版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
人力资源管理李丹M人事管理系统JAVA程序设计课程设计报告课题:mini人事管理系统姓名:学号:201214同组姓名:专业班级:网工指导教师:设计时间:2014年6月17日目录一系统描述...............................................1精品文档放心下载(一)前言...............................................1感谢阅读(二)开发系统的功能介绍.................................1谢谢阅读二分析与设计...............................................2感谢阅读(一)功能模块划分.......................................2谢谢阅读(二)数据库结构描述.....................................2感谢阅读(三)各个模块实现方法描述.............................3谢谢阅读(四)测试数据及期望结果.................................3感谢阅读三源代码...................................................5感谢阅读(一)主页面设计........................................5精品文档放心下载(二)记录添加界面的开发设计.............................11感谢阅读(三)上班登记子系统开发设计.............................13精品文档放心下载(四)信息统计页面的设计开发.............................15精品文档放心下载四系统测试................................................18感谢阅读五总结..................................................21谢谢阅读(一)实验心得..........................................21感谢阅读(二)参考文献..........................................22感谢阅读一.系统描述(一)前言随着科学技术的不断提高,计算机科学日渐成熟,其强大的功能已为人们深感谢阅读刻认识,它已进入人类社会的各个领域并发挥着越来越重要的作用。作为计算机谢谢阅读应用的一部分,使用计算机对人事信息进行管理,具有着手工管理所无法比拟的感谢阅读优点.例如:感谢阅读本低等。这些优点能够极大地提高人事理的效率,也是企业的科学化、正规化管感谢阅读理,感谢阅读感谢阅读感谢阅读高素质的管理人员,而且也需要信息化工具进行辅助谢谢阅读软件系统来于小型的企事业单位,不啻于“杀鸡用牛刀,因此小型的的软件对感谢阅读于这种单位自然有十分重要作用。(二)开发系统的功能介绍1.上班登记子系统上班登记子系统主要对所有员工的上班信息进行登记,包括员工的工号、员精品文档放心下载谢谢阅读班时间信息的记录2.下班登记子系统精品文档放心下载谢谢阅读班时间信息的记录。3.请假登记子系统请假登记子系统主要对所有员工的请假信息进行登记,包括员工的工号、员谢谢阅读精品文档放心下载假时间信息的记录。4.信息统计子系统感谢阅读精品文档放心下载谢谢阅读5.记录添加子系统感谢阅读时间和备注。二.分析与设计谢谢阅读谢谢阅读谢谢阅读总结到一块。大家一起研究错误出在哪里,该怎么改正这些错误。精品文档放心下载(一)功能模块划分本系统分为如下的几大模块:Mini人事管理系统上班登记请假登记退出系统(二)数据库结构描述在这个MINImysqlmysql谢谢阅读谢谢阅读每个子系统里面读取的数据部分不同。设计的表如下:如表一列名数据类型可否允空长度工号数值型否50姓名字符型否50上班时间日期型否30下班时间日期型否30请假时间日期型是30备注字符型是50(三)各个模块实现方法描述1)上班登记模块描述(负责人:李丹)上班登记子系统主要包括一个上班信息统计界面和一个上班信息添加界面。精品文档放心下载感谢阅读不符合要求,可以将此条记录删除。上班信息添加界面主要是员工工号、员工姓名、相应时间和相关备注信息。感谢阅读可以根据信息添加界面上的系统时间指示来填入相应的时间。感谢阅读其流程图为:(四)测试数据及期望结果谢谢阅读登录界面,精品文档放心下载精品文档放心下载精品文档放心下载各种情况。精品文档放心下载时也许还需要返回初始阶段。期望结果:比方说,员工A3:00来上班,点击上班登记,手动添加上班记感谢阅读谢谢阅读的全部记录。三.源代码(一)主页面的设计开发packagemanpowersystem;importjavax.swing.*;importjava.awt.event.*;importjava.awt.*;importcom.borland.jbcl.layout.*;精品文档放心下载importjavax.swing.event.*;谢谢阅读/***<p>Title:</p>*<p>Description:</p>*<p>Copyright:Copyright(c)2003</p>精品文档放心下载*<p>Company:</p>*@authornotattributable精品文档放心下载*@version1.0*/publicclassMainFrameextendsJFrame{精品文档放心下载privateImageIconfmImage;//主框架面板代码文件声明的属性和变量精品文档放心下载XYLayoutxYLayout1=newXYLayout();谢谢阅读JButtonjTitleButton=newJButton();谢谢阅读JButtonjOnWorkButton=newJButton();感谢阅读JButtonjOffWorkButton=newJButton();感谢阅读JButtonjLeaveWorkButton=newJButton();感谢阅读JButtonjStaticButton=newJButton();精品文档放心下载JButtonjExitButton=newJButton();谢谢阅读publicMainFrame(){try{jbInit();addWindowListener(newWindowAdapter(){//窗口事件监听感谢阅读publicvoidwindowClosing(WindowEvente){感谢阅读dispose();//销毁窗口}});}catch(Exceptione){e.printStackTrace();}}publicstaticvoidmain(String[]args){感谢阅读MainFramemainFrame=newMainFrame();谢谢阅读mainFrame.validate();mainFrame.setLocation(200,150);谢谢阅读mainFrame.setSize(600,480);精品文档放心下载mainFrame.setVisible(true);精品文档放心下载mainFrame.pack();}privatevoidjbInit()throwsException{谢谢阅读fmImage=newImageIcon(manpowersystem.MainFrame.class.getResource("Fengmian.png"));谢谢阅读jTitleButton.setBackground(newColor(210,138,177));谢谢阅读jTitleButton.setIcon(fmImage);谢谢阅读jTitleButton.setFocusable(false);//此按钮的聚焦作用失效感谢阅读xYLayout1.setWidth(540);谢谢阅读xYLayout1.setHeight(407);谢谢阅读this.getContentPane().setBackground(newColor(210,138,177));精品文档放心下载this.setLocale(java.util.Locale.getDefault());感谢阅读this.setResizable(true);谢谢阅读this.setTitle("Mini人事管理系统");感谢阅读this.addWindowListener(new感谢阅读MainFrame_this_windowAdapter(this));谢谢阅读this.getContentPane().setLayout(xYLayout1);感谢阅读jOnWorkButton.setBackground(newColor(212,158,217));精品文档放心下载jOnWorkButton.setFont(newjava.awt.Font("DialogInput",1,16));谢谢阅读jOnWorkButton.setText("上班登记");精品文档放心下载jOnWorkButton.addActionListener(new感谢阅读MainFrame_jOnWorkButton_actionAdapter(this));精品文档放心下载jOnWorkButton.addHierarchyBoundsListener(new精品文档放心下载MainFrame_jOnWorkButton_hierarchyBoundsAdapter(this));精品文档放心下载OffWorkButton.setBackground(newColor(212,158,217));谢谢阅读jOffWorkButton.setFont(newjava.awt.Font("DialogInput",1,16));精品文档放心下载jOffWorkButton.setText("下班登记");感谢阅读jOffWorkButton.addActionListener(new感谢阅读MainFrame_jOffWorkButton_actionAdapter(this));谢谢阅读jOffWorkButton.addAncestorListener(new感谢阅读MainFrame_jOffWorkButton_ancestorAdapter(this));感谢阅读jLeaveWorkButton.setBackground(newColor(212,158,217));精品文档放心下载jLeaveWorkButton.setFont(newjava.awt.Font("DialogInput",1,谢谢阅读16));jLeaveWorkButton.setText("请假登记");精品文档放心下载jLeaveWorkButton.addActionListener(new精品文档放心下载MainFrame_jLeaveWorkButton_actionAdapter(this));精品文档放心下载jLeaveWorkButton.addAncestorListener(new谢谢阅读MainFrame_jLeaveWorkButton_ancestorAdapter(this));谢谢阅读jStaticButton.setBackground(newColor(212,158,217));感谢阅读jStaticButton.setFont(newjava.awt.Font("DialogInput",1,16));感谢阅读jStaticButton.setText("统计情况");谢谢阅读jStaticButton.addActionListener(new感谢阅读MainFrame_jStaticButton_actionAdapter(this));感谢阅读jStaticButton.addAncestorListener(new感谢阅读MainFrame_jStaticButton_ancestorAdapter(this));精品文档放心下载jExitButton.setBackground(newColor(212,158,217));精品文档放心下载jExitButton.setFont(newjava.awt.Font("DialogInput",1,16));感谢阅读jExitButton.setText("退出系统");感谢阅读jExitButton.addActionListener(new精品文档放心下载MainFrame_jExitButton_actionAdapter(this));感谢阅读jExitButton.addAncestorListener(new感谢阅读MainFrame_jExitButton_ancestorAdapter(this));谢谢阅读this.getContentPane().add(jTitleButton,感谢阅读newXYConstraints(0,0,358,409));精品文档放心下载this.getContentPane().add(jOnWorkButton,精品文档放心下载newXYConstraints(393,35,115,45));精品文档放心下载this.getContentPane().add(jOffWorkButton,谢谢阅读newXYConstraints(393,109,115,45));精品文档放心下载this.getContentPane().add(jLeaveWorkButton,谢谢阅读newXYConstraints(393,184,115,45));精品文档放心下载this.getContentPane().add(jStaticButton,感谢阅读newXYConstraints(393,258,115,45));谢谢阅读this.getContentPane().add(jExitButton,精品文档放心下载newXYConstraints(393,332,115,45));感谢阅读this.setResizable(false);}voidthis_windowClosed(WindowEvente){感谢阅读System.exit(0);}voidjOnWorkButton_ancestorMoved(HierarchyEvente){感谢阅读}voidjOffWorkButton_ancestorMoved(AncestorEvente){感谢阅读}voidjLeaveWorkButton_ancestorMoved(AncestorEvente){精品文档放心下载}voidjStaticButton_ancestorMoved(AncestorEvente){感谢阅读}voidjExitButton_ancestorMoved(AncestorEvente){谢谢阅读}voidjExitButton_actionPerformed(ActionEvente){精品文档放心下载System.exit(0);}//退出系统按钮的事件处理voidjOnWorkButton_actionPerformed(ActionEvente){精品文档放心下载OnWorkPanelonWorkPanel=newOnWorkPanel();精品文档放心下载onWorkPanel.setVisible(true);精品文档放心下载}//上班登记按钮的事件处理voidjOffWorkButton_actionPerformed(ActionEvente){精品文档放心下载OffWorkPaneloffWorkPanel=newOffWorkPanel();感谢阅读offWorkPanel.setVisible(true);精品文档放心下载}//下班登记按钮的事件处理voidjLeaveWorkButton_actionPerformed(ActionEvente){感谢阅读LeaveWorkPanelleaveWorkPanel=newLeaveWorkPanel();感谢阅读leaveWorkPanel.setVisible(true);精品文档放心下载}//请假登记按钮的事件处理voidjStaticButton_actionPerformed(ActionEvente){精品文档放心下载StaticPanelstaticPanel=newStaticPanel();谢谢阅读staticPanel.setVisible(true);谢谢阅读}//统计情况按钮的事件处理}ClassMainFrame_this_windowAdapter精品文档放心下载extendsjava.awt.event.WindowAdapter{精品文档放心下载MainFrameadaptee;MainFrame_this_windowAdapter(MainFrameadaptee){精品文档放心下载this.adaptee=adaptee;}publicvoidwindowClosed(WindowEvente){谢谢阅读adaptee.this_windowClosed(e);谢谢阅读}}classMainFrame_jOnWorkButton_hierarchyBoundsAdapterextends感谢阅读java.awt.event.HierarchyBoundsAdapter{MainFrameadaptee;MainFrame_jOnWorkButton_hierarchyBoundsAdapter(MainFrameadaptee)精品文档放心下载{this.adaptee=adaptee;}publicvoidancestorMoved(HierarchyEvente){精品文档放心下载adaptee.jOnWorkButton_ancestorMoved(e);精品文档放心下载}}classMainFrame_jOffWorkButton_ancestorAdapterimplements精品文档放心下载javax.swing.event.AncestorListener{MainFrameadaptee;MainFrame_jOffWorkButton_ancestorAdapter(MainFrameadaptee)精品文档放心下载{this.adaptee=adaptee;}publicvoidancestorAdded(AncestorEvente){谢谢阅读}publicvoidancestorRemoved(AncestorEvente){感谢阅读}publicvoidancestorMoved(AncestorEvente){感谢阅读adaptee.jOffWorkButton_ancestorMoved(e);精品文档放心下载}}classMainFrame_jLeaveWorkButton_ancestorAdapterimplements精品文档放心下载javax.swing.event.AncestorListener{MainFrameadaptee;MainFrame_jLeaveWorkButton_ancestorAdapter(MainFrameadaptee){精品文档放心下载this.adaptee=adaptee;}publicvoidancestorAdded(AncestorEvente){谢谢阅读}publicvoidancestorRemoved(AncestorEvente){精品文档放心下载}publicvoidancestorMoved(AncestorEvente){精品文档放心下载adaptee.jLeaveWorkButton_ancestorMoved(e);谢谢阅读}}classMainFrame_jStaticButton_ancestorAdapter精品文档放心下载implementsjavax.swing.event.AncestorListener{感谢阅读MainFrameadaptee;MainFrame_jStaticButton_ancestorAdapter(MainFrameadaptee){精品文档放心下载this.adaptee=adaptee;}publicvoidancestorAdded(AncestorEvente){谢谢阅读}publicvoidancestorRemoved(AncestorEvente){谢谢阅读}publicvoidancestorMoved(AncestorEvente){精品文档放心下载adaptee.jStaticButton_ancestorMoved(e);谢谢阅读}}classMainFrame_jExitButton_ancestorAdapter谢谢阅读implementsjavax.swing.event.AncestorListener{感谢阅读MainFrameadaptee;MainFrame_jExitButton_ancestorAdapter(MainFrameadaptee){感谢阅读this.adaptee=adaptee;}publicvoidancestorAdded(AncestorEvente){精品文档放心下载}publicvoidancestorRemoved(AncestorEvente){谢谢阅读}publicvoidancestorMoved(AncestorEvente){精品文档放心下载adaptee.jExitButton_ancestorMoved(e);感谢阅读}}classMainFrame_jExitButton_actionAdapter谢谢阅读implementsjava.awt.event.ActionListener{谢谢阅读MainFrameadaptee;MainFrame_jExitButton_actionAdapter(MainFrameadaptee){感谢阅读this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){感谢阅读adaptee.jExitButton_actionPerformed(e);谢谢阅读}}classMainFrame_jOnWorkButton_actionAdapter谢谢阅读implementsjava.awt.event.ActionListener{谢谢阅读MainFrameadaptee;MainFrame_jOnWorkButton_actionAdapter(MainFrameadaptee){谢谢阅读this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){感谢阅读adaptee.jOnWorkButton_actionPerformed(e);谢谢阅读}}classMainFrame_jOffWorkButton_actionAdapter精品文档放心下载implementsjava.awt.event.ActionListener{精品文档放心下载MainFrameadaptee;MainFrame_jOffWorkButton_actionAdapter(MainFrameadaptee){谢谢阅读this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){精品文档放心下载adaptee.jOffWorkButton_actionPerformed(e);感谢阅读}}classMainFrame_jLeaveWorkButton_actionAdapterimplements谢谢阅读java.awt.event.ActionListener{感谢阅读MainFrameadaptee;MainFrame_jLeaveWorkButton_actionAdapter(MainFrameadaptee){精品文档放心下载this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){谢谢阅读adaptee.jLeaveWorkButton_actionPerformed(e);谢谢阅读}}classMainFrame_jStaticButton_actionAdapterimplements精品文档放心下载java.awt.event.ActionListener{谢谢阅读MainFrameadaptee;MainFrame_jStaticButton_actionAdapter(MainFrameadaptee){感谢阅读this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){感谢阅读adaptee.jStaticButton_actionPerformed(e);精品文档放心下载}}(二)记录添加界面的开发设计packagemanpowersystem;/***<p>Title:</p>*<p>Description:</p>*<p>Copyright:Copyright(c)2003</p>精品文档放心下载*<p>Company:</p>*@authornotattributable感谢阅读*@version1.0*/importjava.io.*;importjava.util.*;importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.event.*;谢谢阅读importjavax.swing.border.*;感谢阅读importjavax.swing.table.*;精品文档放心下载publicclassRecordItem{privateStringstrEmployeeID;感谢阅读privateStringstrEmployeeName;感谢阅读privateStringstrOnWorkTime;谢谢阅读privateStringstrOffWorkTime;感谢阅读privateStringstrLeaveWorkTime;感谢阅读privateStringstrDescribe;谢谢阅读publicRecordItem(){strEmployeeID=newString("");精品文档放心下载strEmployeeName=newString("");谢谢阅读strOnWorkTime=newString("");精品文档放心下载strOffWorkTime=newString("");精品文档放心下载strLeaveWorkTime=newString("");谢谢阅读strDescribe=newString("");谢谢阅读}publicvoidSetOnworkItem(StringstrEmployeeID,String精品文档放心下载strEmployeeName,StringstrOnWorkTime,StringstrDescribe){谢谢阅读this.strEmployeeID=strEmployeeID;谢谢阅读this.strEmployeeName=strEmployeeName;精品文档放心下载this.strOnWorkTime=strOnWorkTime;感谢阅读this.strDescribe=strDescribe;谢谢阅读}publicvoidSetOffworkItem(StringstrEmployeeID,String谢谢阅读strEmployeeName,StringstrOffWorkTime,StringstrDescribe){感谢阅读this.strEmployeeID=strEmployeeID;精品文档放心下载this.strEmployeeName=strEmployeeName;精品文档放心下载this.strOffWorkTime=strOffWorkTime;精品文档放心下载this.strDescribe=strDescribe;精品文档放心下载}publicvoidSetLeaveworkItem(StringstrEmployeeID,String精品文档放心下载strEmployeeName,StringstrLeaveWorkTime,StringstrDescribe){精品文档放心下载this.strEmployeeID=strEmployeeID;谢谢阅读this.strEmployeeName=strEmployeeName;谢谢阅读this.strLeaveWorkTime=strLeaveWorkTime;感谢阅读this.strDescribe=strDescribe;谢谢阅读}publicStringGetEmployeeID(){谢谢阅读returnstrEmployeeID;}publicStringGetEmployeeName(){精品文档放心下载returnstrEmployeeName;}publicStringGetOnWorkTime(){感谢阅读returnstrOnWorkTime;}publicStringGetOffWorkTime(){精品文档放心下载returnstrOffWorkTime;}publicStringGetLeaveWorkTime(){感谢阅读returnstrLeaveWorkTime;}publicStringGetDescribe(){精品文档放心下载returnstrDescribe;}publicvoidSetEmployeeID(StringstrEmployeeID){感谢阅读this.strEmployeeID=strEmployeeID;谢谢阅读}publicvoidSetEmployeeName(StringstrEmployeeName){精品文档放心下载this.strEmployeeName=strEmployeeName;精品文档放心下载}publicvoidSetOnWorkTime(StringstrOnWorkTime){谢谢阅读this.strOnWorkTime=strOnWorkTime;谢谢阅读}publicvoidSetOffWorkTime(StringstrOffWorkTime){谢谢阅读this.strOffWorkTime=strOffWorkTime;谢谢阅读}publicvoidSetLeaveWorkTime(StringstrLeaveWorkTime){精品文档放心下载this.strLeaveWorkTime=strLeaveWorkTime;感谢阅读}publicvoidSetDescribe(StringstrDescribe){感谢阅读this.strDescribe=strDescribe;精品文档放心下载}}(三)上班登记子系统开发设计packagemanpowersystem;/***<p>Title:</p>*<p>Description:</p>*<p>Copyright:Copyright(c)2003</p>感谢阅读*<p>Company:</p>*@authornotattributable精品文档放心下载*@version1.0*/importjava.io.*;importjava.util.*;importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.event.*;精品文档放心下载importjavax.swing.border.*;感谢阅读importjavax.swing.table.*;谢谢阅读importjava.util.*;importcom.borland.jbcl.layout.*;感谢阅读publicclassOnWorkPanelextendsTablePanel{精品文档放心下载String[]arrField={"工号","姓名","上班时间","备注"};感谢阅读publicOnWorkPanel(){tableModel=newDefaultTableModel(arrData,arrField);谢谢阅读jRecordTable=newJTable(tableModel);精品文档放心下载jTableScrollPane.getViewport().add(jRecordTable,null);精品文档放心下载UpdateRecord();//更新表格this.setTitle("上班登记页面");精品文档放心下载}publicvoidAddRecord(){OnWorkRecordPanerecordPane=newOnWorkRecordPane();精品文档放心下载recordPane.setSize(630,300);精品文档放心下载recordPane.setLocation(230,100);精品文档放心下载recordPane.setVisible(true);谢谢阅读recordPane.setResizable(false);精品文档放心下载recordPane.validate();UpdateRecord();//更新表格}publicvoidDelRecord(){jTableScrollPane.getViewport().add(jRecordTable,null);感谢阅读intRow=jRecordTable.getSelectedRow();谢谢阅读if(intRow==-1)return;try{database.DeleteData(tableModel.getValueAt(intRow,0).toStri());感谢阅读}catch(Exceptione){e.printStackTrace();}UpdateRecord();//更新表格}publicvoidUpdateRecord(){谢谢阅读Object[][]arrTmp={};//设定表格的字段精品文档放心下载tableModel=newDefaultTableModel(arrTmp,arrField);谢谢阅读jRecordTable=newJTable(tableModel);谢谢阅读jTableScrollPane.getViewport().add(jRecordTable,null);感谢阅读try{RecordItem[]result=newRecordItem[100];谢谢阅读for(intj=0;j<100;j++)谢谢阅读result[j]=newRecordItem();感谢阅读result=database.AccessData();感谢阅读for(inti=0;i<result.length;i++){谢谢阅读Objectnewdata[]={result[i].GetEmployeeID(),精品文档放心下载result[i].GetEmployeeName(),感谢阅读result[i].GetOnWorkTime(),精品文档放心下载result[i].GetDescribe()};精品文档放心下载StringstrTmp=result[i].GetOnWorkTime();谢谢阅读if(strTmp.trim().length()==0)感谢阅读continue;tableModel.addRow(newdata);感谢阅读}}catch(Exceptione){e.printStackTrace();}}}publicclassOnWorkRecordPaneextendsRecordPane{感谢阅读publicOnWorkRecordPane(){谢谢阅读}publicvoidRestoreRecord(){感谢阅读StringstrTmp=jEmployeeIDTextField.getText();感谢阅读if(strTmp.trim().length()==0)精品文档放心下载{this.dispose();return;}item.SetOnworkItem(jEmployeeIDTextField.getText(),感谢阅读jEmployeeNameTextField.getText(),精品文档放心下载jDateTimeTextField.getText(),感谢阅读jReasonTextField.getText());谢谢阅读try{database.StoreData(item);感谢阅读}catch(Exceptione){e.printStackTrace();}this.dispose();}}(四)信息统计页面的设计开发packagemanpowersystem;importjava.util.*;importjava.awt.*;importjavax.swing.*;publicclassClockextendsJPanelimplementsRunnable{精品文档放心下载booleankeepRunning=true;谢谢阅读intlastxs=0,lastys=0,lastxm=0,lastym=0,lastxh=0,感谢阅读lastyh=0;Datedummy=newDate();Stringlastdate=dummy.toLocaleString();精品文档放心下载StringmyName;publicClock(StringinName){谢谢阅读myName=newString(inName);谢谢阅读}publicvoidplotpoints(intx0,inty0,intx,inty,Graphicsg){谢谢阅读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);感谢阅读}publicvoidcircle(intx0,inty0,intr,Graphicsg){精品文档放心下载intx,y;floatd;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);精品文档放心下载}}publicvoidpaintComponent(Graphicsg){感谢阅读super.paintComponent(g);精品文档放心下载intxh,yh,xm,ym,xs,ys,s,m,h,xcenter,ycenter;精品文档放心下载Stringtoday;Datedat=newDate();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)
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 竹子主题课程设计模板
- 职业沟通-评价课程设计
- 《围术期的容量治疗》课件
- 瞬变电磁法课程设计
- 2024中级(四)汽车修理工理论学问试题
- 简单电路课程设计
- 网络流量监测课程设计
- 舞蹈早上好课程设计
- 互联网服务行业营业员工作总结
- 同心树共筑和谐初一班主任第一学期工作总结
- 提升极端天气背景下的城市政府韧性治理能力
- 服务营销学教案
- 护理查房 小儿支气管肺炎
- 相关方安全管理培训
- 2023年中国雪茄烟行业现状深度研究与未来投资预测报告
- 皮带输送机巡检规程
- 辽宁省大连市沙河口区2022-2023学年七年级上学期期末语文试题(含答案)
- 心肺循环课件
- 东大光明清洁生产审核报告
- 生产计划排产表-自动排产
- 管理研究方法论for msci.students maxqda12入门指南
评论
0/150
提交评论