ImageVerifierCode 换一换
格式:DOCX , 页数:42 ,大小:21.90KB ,
资源ID:20608938      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/20608938.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(java 职工信息管理系统源代码Word格式文档下载.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

java 职工信息管理系统源代码Word格式文档下载.docx

1、jdbc:sqlserver:/localhost:1433;DatabaseName=employee; String userName=sa String password=xhw Connection conn=DriverManager.getConnection(url,userName,password); if(conn!=null) System.out.println(已成功地与SQL Server 2005数据库建立连接! Statement stmt=conn.createStatement(); stmt.executeUpdate(f); stmt.close();

2、catch(Exception e) e.printStackTrace(); import java.awt.*;import java.awt.event.*;public class lesson2_1 static Frame f; CardLayout myCard; Panel p1; Panel p2; Panel p3; Panel p4; Panel p5; Panel p6; Panel p7; Panel p8; public static void main(String args) lesson2_1 test=new lesson2_1(); test.go1();

3、 test.go2(); test.go3(); test.go4(); test.go5(); test.go6(); test.go7(); test.go8(); public void go1() f=new Frame(呵 呵 myCard=new CardLayout(); f.setLayout(myCard); p1=new Panel(); Button b1,b2,b3; Label L1; TextField te1; final TextField te2; p1.setLayout(new GridBagLayout(); GridBagConstraints c=n

4、ew GridBagConstraints(); Panel p1_1=new Panel(); p1_1.setLayout(new GridBagLayout(); GridBagConstraints x=new GridBagConstraints(); b1=new Button( 请 输 入 用 户 名 b1.setBackground(Color.CYAN); x.insets=new Insets(50,50,50,50); x.gridx=0; x.gridy=0; x.gridwidth=1; x.gridheight=1; p1_1.add(b1,x); b2=new B

5、utton( 请 输 入 密 码 b2.setBackground(Color.CYAN); x.gridy=5; p1_1.add(b2,x); te1=new TextField(15); c.insets=new Insets(40,0,40,0); x.gridx=5; p1_1.add(te1,x); te2=new TextField(15); p1_1.add(te2,x); L1=new Label( * * * * * * * * * *欢 迎 进 入 职 工 管 理 系 统* * * * * * * * * * * * * * L1.setBackground(Color.

6、CYAN); c.gridx=0; c.gridy=0; c.gridwidth=0; c.gridheight=1; p1.add(L1,c); b3=new Button( 登 录 b3.setBackground(Color.CYAN); c.gridy=10; c.gridwidth=5; c.gridheight=5; p1.add(b3,c); c.gridy=20; p1.add(p1_1,c); p1.setBackground(Color.green); f.add(p1,First myCard.show(f, f.setSize(600,600); f.setVisibl

7、e(true); f.addWindowListener( new WindowAdapter() public void windowClosing(WindowEvent e) System.exit(0); ); b3.addMouseListener(new MouseAdapter() public void mouseClicked(MouseEvent e) String x=te2.getText(); int y=Integer.parseInt(x); if(y=106) myCard.show(f,Second ); public void go2() p2=new Pa

8、nel(); Button b1,b2,b3,b4,b5,b6; p2.setLayout(new GridBagLayout(); GridBagConstraints c=new GridBagConstraints(); c.insets=new Insets(50,0,8,0); b1 = new Button(1 职 工 信 息 录 入 b1.setBackground(Color.CYAN); c.gridx=1; c.gridy=50; c.gridwidth=5; c.gridheight=50; p2.add(b1,c); b2=new Button(2 职 工 信 息 浏

9、览 b2.setBackground(Color.CYAN); c.gridy=100; p2.add(b2,c); b3=new Button(3 职 工 信 息 查 询 b3.setBackground(Color.CYAN); c.gridy=150; p2.add(b3,c); b4=new Button(4 职 工 信 息 排 序 b4.setBackground(Color.CYAN); c.gridy=200; p2.add(b4,c); b5=new Button(5 职 工 信 息 修 改 b5.setBackground(Color.CYAN); c.gridy=250;

10、p2.add(b5,c); b6=new Button(6 职 工 信 息 删 除 b6.setBackground(Color.CYAN); c.gridy=300; p2.add(b6,c); L1=new Label( * * * * * * * *欢 迎 进 入 职 工 管 理 系 统* * * * * * * * * * L1.setBackground(Color.CYAN); c.gridy=0; c.gridheight=10; p2.add(L1,c); p2.setBackground(Color.green); f.add(p2, b1.addMouseListener(

11、new MouseAdapter() public void mouseClicked(MouseEvent e) myCard.show(f,Third ); b2.addMouseListener(new MouseAdapter()Fourth b3.addMouseListener(new MouseAdapter()Fifth b4.addMouseListener(new MouseAdapter()Sixth b5.addMouseListener(new MouseAdapter()Seventh b6.addMouseListener(new MouseAdapter()Ei

12、ghth public void go3() p3=new Panel(); p3.setLayout(new GridBagLayout(); Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b10; final TextField te1,te2,te3,te4,te5,te6,te7,te8; c.insets=new Insets(60,50,0,0);* * * * * * * * * * * * * * * 请 输 入 下 面 信 息 * * * * * * * * * * * * * * * * p3.add(L1,c); 工 号 c.gridwidth=1;

13、 p3.add(b1,c); 姓 名 c.gridx=35; p3.add(b2,c); 性 别 c.gridy=30; p3.add(b3,c); b4=new Button( 年 龄 b4.setBackground(Color.CYAN); p3.add(b4,c); b5=new Button( 学 历 b5.setBackground(Color.CYAN); c.gridy=50; p3.add(b5,c); b6=new Button( 工 资 b6.setBackground(Color.CYAN); p3.add(b6,c); b7=new Button( 住 址 b7.se

14、tBackground(Color.CYAN); c.gridy=70; p3.add(b7,c); b8=new Button( 电 话 b8.setBackground(Color.CYAN); p3.add(b8,c); b9=new Button( 提 交 b9.setBackground(Color.CYAN); c.gridx=10; c.gridy=100; p3.add(b9,c); b10=new Button( 返 回 b10.setBackground(Color.CYAN); p3.add(b10,c); te1=new TextField(10); p3.add(te

15、1,c); te2=new TextField(10); c.gridx=37; p3.add(te2,c); te3=new TextField(10); p3.add(te3,c); te4=new TextField(10); p3.add(te4,c); te5=new TextField(10); p3.add(te5,c); te6=new TextField(10); p3.add(te6,c); te7=new TextField(10); p3.add(te7,c); te8=new TextField(10); p3.add(te8,c); p3.setBackground

16、(Color.green); f.add(p3, b9.addMouseListener(new MouseAdapter() employee e1=new employee(); e1.init(te1.getText(),te2.getText(),te3.getText(),te4.getText(), te5.getText(),te6.getText(),te7.getText(),te8.getText(); String x= String y= String z=, String w=) String sql=insert into xhw values( sql=sql+x

17、+e1.num+y+z+x+e1.name+y+z+x+e1.sex+y+z+x+e1.age+y+z+x+e1.edu+y+z +x+e1.sla+y+z+x+e1.add+y+z+x+e1.tel+y+w; e1.load(sql); te1.setText( te2.setText( te3.setText( te4.setText( te5.setText( te6.setText( te7.setText( te8.setText( b10.addMouseListener(new MouseAdapter() public void go4() p4=new Panel(); p4.setLayout(new GridBagLayout(); Button b1,b2; final TextArea ta; c.insets=new Insets(60,0,0,0);*

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1