学籍管理系统源代码_第1页
学籍管理系统源代码_第2页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、packagezuoye;import.*;import.*;publicclassManagerWindowextendsJFrameimplementsActionListenerInputStudentModifySituationInquestDelete基本信息录入=null;基本信息修改=null;基本信息查询=null;基本信息删除=null;JPanelpCenter,p,p9;TextFieldtxtName,txtPassword;LabellblTitle,lblName,lblPassword;ButtonbtnSubmit,btnReset,guanbi;Panelp

2、1,p11,p12,p2,p13,p14,p15;JMenuBarbar;ImageIconicon;JMenufileMenu;JMenuItem录入,修改,查询,删除,欢迎,退出,关于;Containercon=null;Hashtable基本信息=null;Filefile=null;CardLayoutcard=null;JLabellabel=null;JLabellabel2;publicManagerWindow()p=newJPanel();lblName=newLabel("管理员帐号:");txtName=newTextField(10);lblPass

3、word=newLabel("密码:");txtPassword=newTextField(10);('*');btnSubmit=newButton("提交");btnReset=newButton("重置");guanbi=newButton("关闭");p11=newPanel();p12=newPanel();p13=newPanel();p14=newPanel();p15=newPanel();(lblName);(txtName);(lblPassword);(txtPassword)

4、;(this);(this);(btnSubmit);J(btnReset);(guanbi);J(this);(this);(this);(newGridLayout(10,1);(p14);(p15);(p11);(p12);(p13);p9=newJPanel();icon=newImageIcon("");label2=newJLabel(icon,;label=newJLabel("欢迎使用学生基本信息管理系统(newFont("TimesRoman",24);(true);(label);(label2);录入=newJMenuIt

5、em("录入学生基本信息");修改=newJMenuItem("修改学生基本信息");查询=newJMenuItem("查询学生基本信息");删除=newJMenuItem("删除学生基本信息");欢迎=newJMenuItem("欢迎界面");退出=newJMenuItem("退出");关于=newJMenuItem("关于我们");bar=newJMenuBar();fileMenu=newJMenu("菜单选项");(录入);(修

6、改);(查询);(删除);(欢迎);(关于);(退出);(false);(fileMenu);setJMenuBar(bar);基本信息=newHashtable();录入.addActionListener(this);修改.addActionListener(this);查询.addActionListener(this);删除.addActionListener(this);欢迎.addActionListener(this);退出.addActionListener(this);关于.addActionListener(this);card=newCardLayout();con=ge

7、tContentPane();pCenter=newJPanel();(card);file=newFile("作业.txt");if(!()tryFileOutputStreamout=newFileOutputStream(file);ObjectOutputStreamobjectOut=newObjectOutputStream(out);(基本信息);();();catch(IOExceptione)基本信息录入=newInputStudent(file);基本信息修改=newModifySituation(file);基本信息查询=newInquest(this

8、,file);基本信息删除=newDelete(file);(p,;("欢迎语界面",p9);("录入界面",基本信息录入);("修改界面",基本信息修改);("删除界面",基本信息删除);(pCenter,;();addWindowListener(newWindowAdapter()publicvoidwindowClosing(WindowEvente)(0););setVisible(true);setBounds(500,200,450,400);validate();publicvoidclear()(

9、"");("");SuppressWarnings("deprecation")publicvoidsubmit()Stringn=();Stringpaw=();if("admin")&&("1234")(this,"合法用户,欢迎进入本系统");(pCenter,"欢迎语界面");();else(this,"非法用户,禁止进入本系统");publicvoidactionPerformed(ActionEvente)if()=录入)(pCenter,"录入界面");elseif()=修改)(pCenter,"修改界面");elseif()=查询)基本信息查询.setVisible(true);elseif()=删除)(pCenter,"删除界面");elseif()=欢迎)(pCenter,"欢迎语界面");elseif()=退出)(0);elseif()=关于)(this,"五块二小组:常永恒,孙东升,李强,吴春亮,涂留定");Strings=();if("重置")clear();e

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论