职工考勤管理系统课程设计内容摘要:

.*。 import .*。 import .*。 public class menue extends JFrame implements ActionListener{ //主菜单 JPanel cp= new JPanel()。 //添加容器 JPanel,windos JButton b1 = new JButton(职工信息 )。 JButton b2 = new JButton(出勤信息 )。 JButton b3 = new JButton(出差信息 )。 JButton b4 = new JButton(请假信息 )。 JButton b5 = new JButton(加班信息 )。 JButton b6 = new JButton(退出系统 )。 ImageIcon icon = new ImageIcon(C:\\Users\\admin\\Desktop\\worker_guanli\\)。 JPanel p = new JPanel() { protected void paintComponent(Graphics g){ ((), 0, 0, null)。 (g)。 } }。 public menue(String s){ super(s)。 (null)。 (new Rectangle(20,30,130,60))。 //设置按钮的向右,向下,长,宽 (new Rectangle(20,130,130,60))。 (new Rectangle(20,230,130,60))。 (new Rectangle(20,330,130,60))。 (new Rectangle(20,430,130,60))。 (new Rectangle(20,530,130,60))。 (b1)。 //添 加按钮 (b2)。 (b3)。 (b4)。 (b5)。 (b6)。 (true)。 //根据()的值来显示或隐藏 (p)。 ()。 (280,50,980,650)。 //调整容器大小 (false)。 //可以调整界面 大小 ( false )。 ( new Dimension(400, 600) )。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 } public void actionPerformed(ActionEvent e){ if(()==b1){ display d = new display()。 ()。 } if(()==b2){ chuqin chu = new chuqin()。 ()。 } if(()==b3){ chuchai chu = new chuchai()。 ()。 } if(()==b4){ qingjia qing = new qingjia()。 ()。 } if(()==b5){ jiaban qing = new jiaban()。 ()。 } if(()==b6){ (0)。 } } } 以职工信息为例::(其余功能类似) package worker。 import .*。 import .*。 import .*。 import .*。 import。 import .*。 import。 import。 import .*。 import .*。 class display implements ActionListener{ //(一)职工信息管理 JFrame f=new JFrame(查询职工管理 )。 JButton b1=new JButton(添加 )。 JButton b2=new JButton(修改 )。 JButton b3=new JButton(删除 )。 JButton b4=new JButton(查询所有 )。 JButton b5=new JButton(返回 )。 JButton b6=new JButton(查询单人信息 )。 JTextField tf1=new JTextField(9)。 JTextField tf2=new JTextField(9)。 JTextField tf3=new JTextField(9)。 JTextField tf4=new JTextField(9)。 JTextField tf5=new JTextField(9)。 // JTextField tf6=new JTextField(9)。 JTextField tf7=new JTextField(9)。 String a[]={男 ,女 }。 JComboBox box = new JComboBox(a)。 String[] cloum={编号 ,姓名 ,性别 ,年龄 ,职称 }。 Object[][] row = new Object[50][5]。 JTable table=new JTable(row,cloum)。 JScrollPane scrollpane=new JScrollPane(table)。 JSplitPane splitpane=new JSplitPane()。 JSplitPane splitpane1=new JSplitPane()。 void di() { JPanel p=(JPanel)()。 //(new FlowLayout())。 (new BorderLayout())。 (scrollpane)。 (splitpane)。 (splitpane1)。 JPanel p1=new JPanel()。 (b1)。 (b2)。 (b3)。 (b4)。 (b5)。 (b6)。 JPanel p2=new JPanel()。 ()。 (scrollpane)。 JPanel p3=new JPanel()。 //JPanel p4=new JPanel()。 (new GridLayout(7,2))。 // (new JLabel())。 (new JLabel( 编号 :))。 (tf1)。 (new JLabel( 姓名 :))。 (tf2)。 (new JLabel( 性别 :))。 (tf3)。 (new JLabel( 年龄 :))。 (tf4)。 (new JLabel( 职称 :))。 (tf5)。 //(new JLabel( 手机号 :))。 (tf6)。 (new JLabel( 在 此处 输入职 工号 点击查 询删除 :))。 (tf7)。 //(10)。 //(new BorderLayout()。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。