资源描述:
《用java编写学生信息管理系统》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、实用文档用java编写学生信息管理系统importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjava.io.*;importjava.util.*;classStudentimplementsjava.io.Serializable{Stringnumber,name,specialty,grade,borth,sex;publicStudent(){};publicvoidsetNumber(Stringnumber){this.number=numb
2、er;}publicStringgetNumber(){returnnumber;}publicvoidsetName(Stringname){this.name=name;}publicStringgetName(){returnname;}publicvoidsetSex(Stringsex){this.sex=sex;}publicStringgetSex(){returnsex;}publicvoidsetSpecialty(Stringspecialty){this.specialty=specialty;}public
3、StringgetSpecialty(){returnspecialty;}publicvoidsetGrade(Stringgrade){this.grade=grade;}publicStringgetGrade(){returngrade;}publicvoidsetBorth(Stringborth){this.borth=borth;}publicStringgetBorth(){returnborth;}}publicclassStudentManagerextendsJFrame{JLabellb=newJLabel
4、("录入请先输入记录,查询、删除请先输入学号,修改是对查询"+文案大全实用文档"内容改后的保存!");staticJTextFieldJnumber,Jname,Jspecialty,Jgrade,Jborth;staticJRadioButtonboy,girl;staticButtonGroupgroup=null;staticJButtonLogin,select,delete,update,show;staticJPanelp1,p2,p3,p4,p5,p6,pv,ph;staticStudentstudent=null;
5、staticHashtableShashtable=null;staticFilefile=null;staticFileInputStreaminOne=null;staticObjectInputStreaminTwo=null;staticFileOutputStreamoutOne=null;staticObjectOutputStreamoutTwo=null;publicStudentManager(){super("学生基本信息管理系统");Jnumber=newJTextField(10);Jname=newJTe
6、xtField(10);Jspecialty=newJTextField(10);Jgrade=newJTextField(10);Jborth=newJTextField(10);group=newButtonGroup();boy=newJRadioButton("男",true);girl=newJRadioButton("女",false);group.add(boy);group.add(girl);Login=newJButton("录入");select=newJButton("查询");delete=newJBut
7、ton("删除");文案大全实用文档update=newJButton("修改");show=newJButton("显示");Login.addActionListener(newInputAct());select.addActionListener(newInquestAct());update.addActionListener(newModifyAct());delete.addActionListener(newDeleteAct());show.addActionListener(newShowAct());upda
8、te.setEnabled(false);p1=newJPanel();p1.add(newJLabel("学号:",JLabel.CENTER));p1.add(Jnumber);p2=newJPanel();p2.add(newJLabel("