![JAVA課程設(shè)計--員工信息管理系統(tǒng)(徐如飛)_第1頁](http://file2.renrendoc.com/fileroot_temp3/2021-8/16/5e0d01f2-668a-497e-9f9d-2ea422324faa/5e0d01f2-668a-497e-9f9d-2ea422324faa1.gif)
![JAVA課程設(shè)計--員工信息管理系統(tǒng)(徐如飛)_第2頁](http://file2.renrendoc.com/fileroot_temp3/2021-8/16/5e0d01f2-668a-497e-9f9d-2ea422324faa/5e0d01f2-668a-497e-9f9d-2ea422324faa2.gif)
![JAVA課程設(shè)計--員工信息管理系統(tǒng)(徐如飛)_第3頁](http://file2.renrendoc.com/fileroot_temp3/2021-8/16/5e0d01f2-668a-497e-9f9d-2ea422324faa/5e0d01f2-668a-497e-9f9d-2ea422324faa3.gif)
![JAVA課程設(shè)計--員工信息管理系統(tǒng)(徐如飛)_第4頁](http://file2.renrendoc.com/fileroot_temp3/2021-8/16/5e0d01f2-668a-497e-9f9d-2ea422324faa/5e0d01f2-668a-497e-9f9d-2ea422324faa4.gif)
![JAVA課程設(shè)計--員工信息管理系統(tǒng)(徐如飛)_第5頁](http://file2.renrendoc.com/fileroot_temp3/2021-8/16/5e0d01f2-668a-497e-9f9d-2ea422324faa/5e0d01f2-668a-497e-9f9d-2ea422324faa5.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、摘要眾所周知,當(dāng)今社會是信息社會,因此,要想加強人事管理,單純依靠以前的手工管理,不僅會浪費大量的人力,物力,財力,而且效率不高,而且很難達(dá)到預(yù)期的目的。所以人事管理信息系統(tǒng)能夠提供準(zhǔn)確的人員信息,以便領(lǐng)導(dǎo)者了解企業(yè)各個部門的人員構(gòu)成,安排好工作計劃,使企業(yè)變的更高效。該系統(tǒng)能夠?qū)δ硢挝坏穆毠みM(jìn)行管理,主要功能如下是:一、人事資料輸入:輸入員工信息,如姓名、身份證號、地址、電話、部門、工資、參 加工作時間、專業(yè)、職務(wù)、備注等。二、信息查詢:可根據(jù)職工編號、職工名稱、出生年月范圍、工資范圍、參加工作時間 范圍等條件查詢。三、登陸檢測、用戶管理、密碼修改、權(quán)限設(shè)置。四、系統(tǒng)初始化:包括操作員信息初
2、始化和職工信息初始化。五、用戶信息修改:擁有權(quán)限的操作員可以修改、凍結(jié)、刪除普通用戶。關(guān)鍵詞:人事信息、java、用戶界面目錄一、設(shè)計目的 1.二、設(shè)計問題 1.三、概要設(shè)計 1.四、詳細(xì)設(shè)計 2.1、定義員工類: 32、主程序: 43、實現(xiàn)員工信息的錄入: 74、實現(xiàn)員工信息的修改: 125、實現(xiàn)員工信息的查詢: 196、實現(xiàn)員工信息的刪除: 23五、設(shè)計總結(jié) 2.7.參考文獻(xiàn) 2.8.信息專業(yè)java語言程序設(shè)計課程設(shè)計人事管理系統(tǒng)一、設(shè)計目的通過該課程設(shè)計,使同學(xué)們進(jìn)一步理解概 JAVA的基本概念、理論和方法,初步掌握J(rèn)DK、Eclipse的調(diào)試和應(yīng)用,以及程序中錯誤的解決方法,明確JA
3、VA在實際程序設(shè)計中的應(yīng)用。使課堂中學(xué)習(xí)到理論得到應(yīng)用,練習(xí)文件形式在JAVA程序設(shè)計中的應(yīng)用。二、設(shè)計問題設(shè)計題目:員工管理系統(tǒng)設(shè)計要求:(1)完成員工信息的添加、刪除、查詢、修改功能(2)使用用戶界面操作(3)使用文件形式完成設(shè)計思路:首先設(shè)計界面進(jìn)入面板, 在面板中添加菜單選項, 并將要實現(xiàn)的功能選項添加其 中,然后對這些選項實施監(jiān)聽,實現(xiàn)其功能。通過文件類型知識的應(yīng)用,實現(xiàn)對員工信息的 管理。三、概要設(shè)計1、從管理員角度講,實現(xiàn)的功能是:(1)對員工有關(guān)數(shù)據(jù)的輸入功能a)實現(xiàn)對員工基本信息的輸入b)實現(xiàn)對員工獎懲信息的輸入(2)對員工有關(guān)數(shù)據(jù)的更新功能由管理員進(jìn)行檔案收集, 經(jīng)過對檔案
4、資料的處理, 更新員工檔案管理系統(tǒng)中的獎懲相關(guān)信息(包括員工基本信息和員工業(yè)績信息)。(3)對員工檔案信息的查詢功能管理員可以通過自己的用戶名和密碼在因特網(wǎng)上對所有員工的信息(包括員工的檔案信息、員工的業(yè)績信息)進(jìn)行查詢。(4)對員工、部門和部門領(lǐng)導(dǎo)信息的簡單管理(5)對用戶密碼的管理2、從普通用戶(員工)的角度講,實現(xiàn)的功能是:(1)在單位員工可以通過自己的編號和密碼在因特網(wǎng)上對自己的個人信息(包括個人的檔 案信息、業(yè)績信息)進(jìn)行查詢。(2)對用戶密碼的管理面板設(shè)計:首先設(shè)計一個容器,然后再容器中添加菜單,在菜單中添加選項,并在容器 中加入面板,面板布局設(shè)置為CardLayout,最后將面板
5、添加進(jìn)容器。功能實現(xiàn):在錄入、查詢、修改和刪除界面中使用JButton、JLabel、ButtonGroup、JRadioButton、JTextField 、Choice為界面中加入相應(yīng)的組件,并對其進(jìn)行監(jiān)聽,同時附 加了文件流的處理。員工信息管理系統(tǒng)的系統(tǒng)運行流程圖四、詳細(xì)設(shè)計1、定義員工類:public class Employee impleme nts java.io.Serializable String number,name,discipling,grade,borth,sex;public Employee。public void setNumber(Stri ng nu m
6、ber)this .nu mber =nu mber;public String getNumber()retur n nu mber;public void setName(String name)this .n ame=n ame;public String getName()return n ame;public void setDiscipli ng(Stri ng discipli ng)this.discipli ng=discipli ng;public String getDiscip in g()retur n discipli ng;public void setGrade
7、(Stri ng grade)this.grade=grade;public String getGrade()retur n grade;public void setBorth(Stri ng borth)this.borth=borth;public Stri ng getBorth()retur n borth;public void setSex(Stri ng sex) this.sex=sex;public String getSex()return sex; 2、主程序: import java.awt.*;import java.awt.eve nt.*;import jav
8、ax.swi ng.*;import java.io.*;import java.util.Hashtable;public class EmployeeMa nager exte nds JFrame impleme nts Actio nListe ner33EmployeeSituati on ModifySituatio n In questDeleteJMen uBar bar; JMe nu fileMe nu;基本信息錄入=n ull; 基本信息修改=null; 基本信息查詢=null; 基本信息刪除=n ull;JMenultem 錄入,修改,查詢,刪除;Container c
9、on=n ull;Hashtable 基本信息=n ull;File file=nu II;CardLayout card=nu II; JLabel label=null;JPa nel pCe nter;public EmployeeMa nager()錄入=new JMenultem(”錄入員工基本信息 ); 修改=new JMenultem(”修改員工基本信息 ); 查詢=new JMenultem(”查詢員工基本信息 ); 刪除=new JMenultem(”刪除員工基本信息); bar= new JMe nuBar();fileMenu=new JMenu(” 菜單選項);file
10、Me nu.add(錄入);fileMenu.add(修改);fileMenu.add(查詢);fileMe nu.add(刪除);bar.add(fileMe nu);setJMe nuBar(bar);label=new JLabel(歡迎進(jìn)入員工信息管理系統(tǒng)”,JLabel.CENTER);label.setFo nt(new Fon t(Sa nsSerif,Fo nt.BOLD+Fo ntTALIC,25); label.setForegro un d(Color.red);基本信息=new Hashtable();錄入.addActionListener(this);修改.addA
11、ctionListener(this);查詢.addActionListener(this);刪除.addActionListener(this);card=new CardLayout();con=getC onten tPa ne();pCe nter= new JPa nel();pCe nter.setLayout(card);pCe nter.setBackgro un d(Color.yellow);file=new File(基本信息.txt);if(!file.exists()tryFileOutputStream out =new FileOutputStream(file)
12、; ObjectOutputStream objectOut =new ObjectOutputStream(out);objectOut.writeObject( 基本信息);objectOut.close();out.close();catch(IOExcepti on e)基本信息錄入=new EmployeeSituation(file);基本信息修改=new ModifySituatio n(file);基本信息查詢=new Inq uest(this,file);基本信息刪除=new Delete(file);pCenter.add(歡迎語界面,label);pCenter.add
13、(” 錄入界面,基本信息錄入);pCenter.add(”修改界面,基本信息修改);pCenter.add(”刪除界面,基本信息刪除);con .add(pCe nter,BorderLayout.CENTER);con. validate();addWi ndowListe ner(new Win dowAdapter()public void win dowClos in g(Wi ndowEve nt e)System.exit(O););setVisible(true);setBou nds(100,50,420,380);validate。;public void action Pe
14、rformed(Act ionEvent e)if(e.getSource()=錄入)card.show(pCenter,錄入界面);else if(e.getSource()=修改)card.show(pCenter,修改界面);else if(e.getSource()=查詢)基本信息查詢.setVisible(true);else if(e.getSource()=刪除)card.show(pCenter,刪除界面);public static void main(String args)new EmployeeMa nager();3、實現(xiàn)員工信息的錄入:import java.awt
15、.*;import java.awt.eve nt.*;import javax.swi ng.*;import java.io.*;import java.util.*;public class EmployeeSituati on exte nds JPa nel impleme nts Actio nListe ner Hashtable 基本信息表=n ull;JTextField 員工號,姓名,工資;Choice 部門;JRadioButton 男,女;Employee 員工 =nu II;Butt on Group group=n ull;JButton 錄入,重置;File In
16、 putStream inOne=n ull;ObjectI nputStream in Two=n ull;FileOutputStream out One=n ull;ObjectOutputStream outTwo=n ull;File file=n ull;public EmployeeSituation(File file) this.file=file;員工號=new JTextField(10); 姓名=new JTextField(10); 部門=n ew Choice(); 部門.add(請選擇); 部門.add(研發(fā)部); 部門.add(銷售部); 部門.add(人事部)
17、;部門.add(”安全部”); 工資=new JTextField(IO); group=new Butt on Group();男 =n ew JRadioButto n(男 ”,true);女=門6可 JRadioButto n(” 女false);group.add(男);group.add(女);錄入=new JButton(” 錄入); 重置=new JButton(” 重置); 錄入.addActionListener(this); 重置.addActionListener(this);Box box仁Box.createHoriz on talBox();box1.add(new
18、 JLabel( 員工號:,JLabel.CENTER);box1.add(員工號);Box box2=Box.createHoriz on talBox();box2.add(new JLabel( 姓名:,JLabel.CENTER);box2.add(姓名);Box box3=Box.createHoriz on talBox();box3.add(new JLabel( 性別:,JLabel.CENTER);box3.add(男);box3.add(女);Box box4=Box.createHoriz on talBox();box4.add(new JLabel( 部門:,JLab
19、el.CENTER);box4.add(部門);Box box6=Box.createHoriz on talBox();box6.add(new JLabel( JLabel.CENTER);Box box5=Box.createHoriz on talBox();box5.add(new JLabel(工資:,JLabel.CENTER); box5.add(工資);Box boxH=Box.createVerticalBox(); boxH.add(box1);boxH.add(box2);boxH.add(box3);boxH.add(box5);boxH.add(box6);boxH
20、.add(box4);boxH.add(Box.createVerticalGlue();JPa nel pCe nter=new JPa nel();pCe nter.add(boxH);pCe nter.setBackgro un d(Color.yellow); setLayout (new BorderLayout(); add(pCe nter,BorderLayout.CENTER);JPanel pSouth=new JPa nel(); pSouth.add(錄入);pSouth.add(重置); pSouth.setBackgro un d(Color.yellow); ad
21、d(pSouth,BorderLayout.SOUTH); validate();public void action Performed(Acti onEvent e)if(e.getSource()= 錄入)String nu mber=;number=員工號.getText();if(nu mber.le ngth()0)tryinOne=new FileI nputStream(file);in Two=new ObjectI nputStream(i nOn e);基本信息表=(Hashtable)i nTwo.readObject(); inOn e.close();in Two.
22、close();catch(Exceptio n ee)基本信息表.containsKey(number)if(,請到修改頁面修改!;警告確認(rèn)Stri ng warni ng=該員工基本信息已存在JOpti onPan e.showMessageDialog(this,war nin g,JOptio nPan e.WARNING_MESSAGE);elseStri ng m=基本信息將被錄入!;int ok=JOptio nPan e.showC on firmDialog(this,m,姓名.getText();部門.getSelectedltem(); 工資.getText();,JOp
23、tio nPan e.YES_NO_OPTION, JOptio nPa ne.lNFORMATION_MESSAGE); if(ok=JOptio nPan e.YES_OPTION) String n ame=String discipli ng=String grade=String sex=n ull;if(男.isSelected()sex=男.getText();elsesex=女.getText();員工=new Employee。;員工.setNumber(number);員工.setName(name);員工 .setDiscipling(discipling);員工.set
24、Grade(grade);員工 .setSex(sex);tryout One=new FileOutputStream(file); outTwo=new ObjectOutputStream(outOne); 基本信息表.put(number, 員工);outTwo.writeObject(基本信息表);outTwo.close();out On e.close();員工號.setText(null);姓名.setText(null); 工資.setText(null);catch(Excepti on ee)System.out.pri ntl n( ee);elseStri ng wa
25、rni ng=必須要輸入員工號!;JOpti onPan e.showMessageDialog(this,war nin g,JOptio nPan e.WARNING_MESSAGE);if(e.getSource()= 重置)員工號.setText(null);姓名.setText(null);部門.remove(部門.getSelectedIndex(); 工資.setText(null);4、實現(xiàn)員工信息的修改:import java.awt.*;import java.awt.eve nt.*;import javax.swi ng.*;import java.io.*;impor
26、t java.util.*;public class ModifySituation extends JPanel implements ActionListener Hashtable 基本信息表=n ull;JTextField 員工號,姓名,工資;Choice 部門;JRadioButton 男,女;Butt on Group group=n ull;JButton開始修改,錄入修改,重置;File In putStream inOne=n ull;ObjectI nputStream in Two=n ull;FileOutputStream out One=n ull;ObjectO
27、utputStream outTwo=n ull;File file=n ull;public ModifySituatio n(File file)this.file=file;員工號=new JTextField(IO);姓名=new JTextField(10);部門=n ew Choice。;部門.add(請選擇);部門.add(”研發(fā)部);部門.add(”銷售部);部門.add(”人事部);部門.add(”安全部);工資=new JTextField(10);group=new Butt on Group();男 =n ew JRadioButto n(男 ”,true); 女=門6
28、可 JRadioButto n(” 女false);group.add( 男);group.add(女);開始修改=new JButton(”開始修改);錄入修改=new JButton(” 錄入修改);錄入修改.setEnabled(false); 重置=new JButton(” 重置); 員工號.addActionListener(this);開始修改.addActionListener(this);錄入修改.addActionListener(this);重置.addActionListener(this);Box box仁Box.createHoriz on talBox();:,J
29、Label.CENTER);box1.add( new JLabel( 輸入要修改信息的員工號 box1.add(員工號);box1.add( 開始修改);Box box2=Box.createHoriz on talBox();box2.add(new JLabel( 姓名:,JLabel.CENTER);box2.add(姓名);Box box3=Box.createHoriz on talBox();box3.add(new JLabel( 性別:,JLabel.CENTER);box3.add(男);box3.add(女);Box box4=Box.createHoriz on tal
30、Box();box4.add(new JLabel( 部門:,JLabel.CENTER);box4.add(部門);Box box6=Box.createHoriz on talBox();box6.add(new JLabel( JLabel.CENTER);Box box5=Box.createHoriz on talBox();box5.add( new JLabel( 工資:,JLabel.CENTER);box5.add(工資);Box boxH=Box.createVerticalBox();boxH.add(box1);boxH.add(box2);boxH.add(box3)
31、;boxH.add(box5);boxH.add(box6);boxH.add(box4);boxH.add(Box.createVerticalGlue();JPa nel pCe nter=new JPa nel();pCe nter.add(boxH);pCe nter.setBackgro un d(Color.yellow);setLayout (new BorderLayout();add(pCe nter,BorderLayout.CENTER);JPanel pSouth=new JPa nel();pSouth.add(錄入修改);pSouth.add( 重置);pSouth
32、.setBackgro un d(Color.yellow);add(pSouth,BorderLayout.SOUTH);validate();public void action Performed(Acti onEvent e)if(e.getSource()= 開始修改 |e.getSource()= 員工號)String nu mber=;number=員工號.getText();if(nu mber.le ngth()0)try inOne=new FileI nputStream(file);in Two=new ObjectI nputStream(i nOn e);基本信息表
33、=(Hashtable)i nTwo.readObject();inOn e.close();in Two.close();catch(Exceptio n ee)if(基本信息表.containsKey(number)錄入修改.setEnabled(true);Employee stu=(Employee)基本信息表.get(number);姓名.setText(stu.getName();部門.getSelectedltem();工資.setText(stu.getGrade();if(stu.getSex().equals(男)男.setSelected(true);else女.setS
34、elected(true);else錄入修改.setEnabled(false);警告Stri ng warni ng=該員工號不存在!;JOpti onPan e.showMessageDialog(this,war nin g,”,JOptio nPan e.WARNING_MESSAGE); 員工號.setText(null);姓名.setText(null);部門.remove(部門.getSelectedltem();工資.setText(null);else錄入修改.setEnabled(false);Stri ng warni ng=必須要輸入員工號!;JOpti onPan e
35、.showMessageDialog(this,war nin g,JOptio nPan e.WARNING_MESSAGE);員工號.setText(null);姓名.setText(null);部門.remove(部門.getSelectedltem();工資.setText(null);else if(e.getSource()=錄入修改)String nu mber=;number=員工號.getText();if(nu mber.le ngth()0)try inOne=new FileI nputStream(file);in Two=new ObjectI nputStream
36、(i nOn e);基本信息表=(Hashtable)i nTwo.readObject();inOn e.close();in Two.close();catch(Excepti on ee)if(String question=息嗎?;JOpti onPan e.showMessageDialog(this,questi on,”,JOpti onPan e.QUESTION_MESSAGE);String m=基本信息將被修改?。籭nt ok=JOptionPane.showConfirmDialog(this,m,JOptio nPan e.YES_NO_OPTION,JOptio n
37、Pa neNFORMATION_MESSAGE); if(ok=JOptio nPan e.YES_OPTION)String n ame=String discipli ng=String grade=String sex=n ull;if(sex=elsesex=基本信息表.containsKey(number)該員工基本信息已存在,您想修改他(她)的基本信姓名.getText();部門.getSelectedltem();工資.getText();男.isSelected()男.getText();女.getText();警告確認(rèn)Employee員工 =new Employee。;員工.
38、setNumber(number);員工.setName(name);員工 .setDiscipling(discipling);員工.setGrade(grade);員工 .setSex(sex);tryout One=new FileOutputStream(file);outTwo=new ObjectOutputStream(out On e); 基本信息表.put(number, 員工);outTwo.writeObject(基本信息表);outTwo.close();out On e.close();員工號.setText(null); 姓名.setText(null);部門.re
39、move(部門.getSelectedltem(); 工資.setText(null);catch(Excepti on ee)System.out.pri ntl n( ee);錄入修改.setEnabled(false);else if(ok=JOptio nPa ne.NO_OPTION)錄入修改.setEnabled(true);else,不能修改!;警告Stri ng warni ng=該員工號沒有基本信息JOpti onPan e.showMessageDialog(this,war nin g,JOptio nPan e.WARNING_MESSAGE);錄入修改.setEnab
40、led(false);elseStri ng warni ng=必須要輸入員工號!;JOptio nPan e.showMessageDialog(this,warni ng, ,JOptio nPan e.WARNING_MESSAGE);錄入修改.setEnabled(false);if(e.getSource()= 重置)員工號.setText(null);姓名.setText(null);部門.remove(部門.getSelectedltem();工資.setText(null);5、實現(xiàn)員工信息的查詢:import java.awt.*;import java.awt.eve nt
41、.*;import javax.swi ng.*;import java.io.*;import java.util.*;public class Inq uest exte nds JDialog impleme nts Action Liste ner Hashtable 基本信息表=n ull;JTextField 員工號,姓名,部門,工資;JRadioButton男,女;JButton 查詢;Butt on Group group=n ull;File In putStream inOne=n ull;ObjectI nputStream in Two=n ull;File file=
42、n ull;public Inquest(JFrame f,File file)super(f,查詢對話框 ”,false);this.file=file;員工號=new JTextField(10);查詢=new JButton(” 查詢);員工號.addActionListener(this);查詢.addActionListener(this);姓名=new JTextField(IO);姓名.setEditable(false);咅部門=new JTextField(10);部門.setEditable(false);工資=new JTextField(10);工資.setEditab
43、le(false);男=new JRadioButto n(” 男false);女=門6可 JRadioButto n(” 女false);group=new Butt on Group();group.add(男);group.add(女);Box box仁Box.createHoriz on talBox();box1.add( new JLabel(輸入要查詢的員工號:,JLabel.CENTER);box1.add(員工號);box1.add(查詢);Box box2=Box.createHoriz on talBox();box2.add(new JLabel(姓名:,JLabel.
44、CENTER);box2.add(姓名);Box box3=Box.createHoriz on talBox();box3.add(new JLabel(性別:,JLabel.CENTER);box3.add(男);box3.add(女);Box box4=Box.createHoriz on talBox();box4.add(new JLabel(部門:,JLabel.CENTER);box4.add(部門);Box box5=Box.createHoriz on talBox();box5.add(new JLabel(工資:,JLabel.CENTER);box5.add(工資);B
45、ox boxH=Box.createVerticalBox();boxH.add(box1);boxH.add(box2);boxH.add(box3);boxH.add(box5);boxH.add(box4);boxH.add(Box.createVerticalGlue();JPa nel pCe nter=new JPa nel();pCe nter.add(boxH);pCe nter.setBackgro un d(Color.gree n);Container con=getC onten tPa ne();con .add(pCe nter,BorderLayout.CENTE
46、R);con. validate();setVisible(false);setBou nds(100,200,360,270);addWi ndowListe ner(new Win dowAdapter()public void wi ndowClos in g(Wi ndowEve nt e)setVisible(false); );public void action Performed(Act ionEvent e)姓名.setText(null);部門.setText(null);工資.setText( null);if(e.getSource()=查詢 |e.getSource(
47、)= 員工號)String nu mber=;number= 員工號.getText();if(nu mber.le ngth()0)try inOne=new FileI nputStream(file);in Two=new ObjectI nputStream(i nOn e);基本信息表=(Hashtable)i nTwo.readObject();inOn e.close();in Two.close();catch(Exceptio n ee)if(基本信息表.containsKey(number)Employee stu=(Employee)基本信息表.get(number);姓
48、名.setText(stu.getName();咅部門.setText(stu.getDisciping();工資.setText(stu.getGrade();if(stu.getSex().equals(男)男.setSelected(true);else女.setSelected(true); elseString warning=該員工號不存在!;JOpti onPan e.showMessageDialog(this,war nin g,”,JOptio nPan e.WARNING_MESSAGE);elseStri ng warni ng=必須要輸入員工號!;JOpti onPa
49、n e.showMessageDialog(this,war nin g,JOptio nPan e.WARNING_MESSAGE);警告警告B查洵對話框xKu03090 7 0223直呦姓名:陳性另* 男O女工資:4567部門:銷售部6、實現(xiàn)員工信息的刪除: import java.awt.*;import java.awt.eve nt.*;import javax.swi ng.*;import java.io.*;import java.util.*;public class Delete exte nds JPa nel impleme nts Acti on Liste nerH
50、ashtable 基本信息表=n ull;JTextField 員工號,姓名,部門,工資;JRadioButton 男,女;JButton 刪除;Butt on Group group=n ull;File In putStream inOne=nu II;ObjectI nputStream in Two=nu II;FileOutputStream out One=nu II;ObjectOutputStream outTwo=n ull;File file=null;public DeIete(FiIe file)this.file=file;員工號=new JTextField(10)
51、; 刪除=n ew JButto n(” 刪除);員工號.addActionListener(this);刪除.addActionListener(this);姓名=new JTextFieId(10);姓名.setEditable(false);部門=new JTextFieId(10);部門.setEditable(false);工資=new JTextFieId(10);工資.setEditable(false);男=n ew JRadioButt on (”男,false);女=門 ew JRadioButt on (”女,false);group=new Butt on Group(
52、);group.add(男);group.add(女);Box box仁Box.createHoriz on taIBox();box1.add( new JLabeI(輸入要刪除的學(xué)號:,JLabel.CENTER);box1.add(員工號);box1.add(刪除);Box box2=Box.createHoriz on taIBox();box2.add(new JLabeI(姓名:,JLabel.CENTER);box2.add(姓名);Box box3=Box.createHoriz on taIBox();box3.add(new JLabel(性別:,JLabel.CENTER);box3.add(男);box3.add(女);Box box4=Box.createHoriz on talBox();box4.add(new JLabel(部門:,JLabel.CENTER);box4.add(部門);Box box6=Box.createHoriz o
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025-2030年地質(zhì)鉆探設(shè)備升級行業(yè)深度調(diào)研及發(fā)展戰(zhàn)略咨詢報告
- 2025-2030年商用空氣凈化器行業(yè)深度調(diào)研及發(fā)展戰(zhàn)略咨詢報告
- 基于超聲導(dǎo)波的管道焊縫面型缺陷檢測及智能識別研究
- 豐田和鈴木交叉持股的動因及經(jīng)濟(jì)效果研究
- S1 VBQ、VBQ評分及HU值對椎體脆性骨折患者預(yù)測價值的研究
- KMT2D-IGFBP5軸在前列腺癌發(fā)生發(fā)展中的機制研究
- 初中英語新手教師和專家教師糾錯行為對比研究
- B、C增強Ti-4822基復(fù)合材料顯微組織調(diào)控及高溫拉伸性能研究
- 新型含氮芳基類抗真菌抑制劑的設(shè)計、合成及生物活性研究
- 維特根斯坦的心理學(xué)哲學(xué)批判與價值的自由
- 2025年度數(shù)據(jù)備份與恢復(fù)合法委托服務(wù)合同
- 《證券法培訓(xùn)》課件
- 2024年鐵嶺衛(wèi)生職業(yè)學(xué)院高職單招語文歷年參考題庫含答案解析
- 大班美術(shù)活動:傳統(tǒng)的節(jié)日
- 鞋類代理合作協(xié)議
- 2025理論學(xué)習(xí)計劃2025年理論中心組學(xué)習(xí)計劃
- 2025年醫(yī)美醫(yī)院公司組織架構(gòu)和業(yè)務(wù)流程
- 防滑防摔倒安全教育
- 乳腺癌課件教學(xué)課件
- 連續(xù)性腎替代治療抗菌藥物劑量調(diào)整專家共識(2024年版)解讀
- 山西省2024年中考物理試題(含答案)
評論
0/150
提交評論