付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、学生学籍管理详细设计学号:姓名:班级:一、设计题目:学生学籍管理二:设计内容:设计GUI学生学籍管理界面,用户可以加入学生信息,并对基本信息进行修改,添加,查询,删除。三:设计要求:进行简单的学生信息管理。四:总体设计(1)登陆界面的设计(2)主窗体的设计(3)添加学生信息窗体(4)查询学生信息窗体(5)修改学生信息窗体(6)删除学生信息窗体(7)事件响应的处理五:具体设计(1)程序结构的说明:A入口程序:;B.登陆界面程序:;C主窗体程序:;D添加信息窗口程序:E修改信息窗口程序:F查询信息窗口程序:;G删除信息窗口程序:;H.程序数据连接:;(2)程序代码及分析说明A.程序源代码(已提交)
2、是程序的入口。使登录窗口位于窗口中间,并且不可改变窗口大小。是程序的登陆窗体。输入用户名和密码(用户名和密码在数据库的password表中)点击“进入系统”,然后登陆界面消失;出现要操作的界面(屏幕左上角)。是添加信息界面。添加基本信息后,点击“添加信息”按钮,将信息加入xinxi表中。是修改信息界面。输入要修改的学号或姓名(两者数其一或全部输入),并输入所有信息,点击“修改信息”按钮(如果数据库中不存在此学号,则弹出对话框“无此学生信息”),若有则修改。是删除信息界面。输入要删除的学生的学号,点击“删除信息”按钮,弹出确认删除对话框,即可删除该生信息。是查询信息界面。输入要查询的学生学号,点
3、击“信息查询”按钮,在相应的文本区里显示查询的信息。H:源代码;import.*;etScreenSize();DimensionframeSize=();if>=;if>=;(true);publicstaticvoidmain(String口args)try();catch(Exceptione)();newstudent();JpublicclassDatabaseConn(privatestaticStringuser=""privatestaticStringpassword=""privateConnectionconn=null
4、;privateStatementstmt=null;privateResultSetrs=null;static(try("");.stmt=createStat();rs=(sql);returnrs;catch(SQLExceptione)returnnull;publicvoidclose()tryif(rs!=null)();if(stmt!=null)();if(conn!=null)();catch(SQLExceptionex)();import.*;import.*;publicclassmainframeextendsJFrameimplementsAc
5、tionListenerstaticmainframes;staticJPanelpan=newJPanel();staticJLabellabell=new儿abel用户)static儿abellabel2=newJLabel密码)staticJTextFieldtextFieldl=newJTextField();staticJPasswordFieldpassword=newJPasswordField();staticJButtonbutton1=newJButton('进入系统");staticJRadioButtonradioButton1=newJRadioBu
6、tton('管理员",true);quals("syc")&&().equals("123")interfacb=newinterfac();();quals()|"".equals()(null,“用户名或密码不能为空");else(null用户名或密码输入有误");)if()quals("")|().equals("")(this,"用户名或密码不可为空!");)elseif()newinterfac();else(t
7、his,“您的输入有误");import.*;publicclassinterfacextendsJFrameimplementsActionListenerstaticJMenuBarjMenuBar=newJMenuBar();import.*;import.*;publicclasstjextendsJFrameimplementsActionListenerstatictjs;static儿abellabell=newJLabel学号:");staticJTextFieldtextFieldl=newJTextField("");staticJL
8、abellabel2=newJLabel姓名:");staticJTextFieldtextField2=newJTextField("");staticJLabellabel3=newJLabel性另:");staticJTextFieldtextField7=newJTextField("");staticJLabellabel4=newJLabel出生日期:");staticJTextFieldtextField3=newJTextField("");staticJLabellabel5=new儿a
9、bel政治面貌:");staticJTextFieldtextField8=newJTextField("");static儿abellabel6=newJLabel籍贯)staticJTextFieldtextField4=newJTextField("");staticJLabellabel7=newJLabel保别:");staticJTextFieldtextField9=newJTextField("");static儿abellabel8=newJLabel("业:");static
10、JTextFieldtextField5=newJTextField("");staticJButtonbutton1=newJButton”曾加)publictj()("增加学生信息)(null);(400,400);(30,11,51,33);(86,16,74,22);(162,11,51,33);(192,16,44,22);(241,11,70,33);(275,15,50,25);(31,53,55,33);(86,58,74,22);(241,53,70,33);(296,57,72,25);(163,53,26,33);(191,58,44,22)
11、;(30,94,50,33);(86,94,74,22);(163,94,51,33);(190,99,178,22);(25,241,80,33);(this);(label1);(label2);(label3);(label4);(label5);(label6);(label7);(label8);(textFieldl);(textField2);(textField3);(textField4);(textField5);(textField7);(textField8);(textField9);(buttonl);(true);publicstaticvoidmain(Stri
12、ng口args)throwsExceptiontja=newtj();publicvoidactionPerformed(ActionEvente);import.*;import.*;publicclassxgextendsJFrameimplementsActionListenerstaticxgs;static儿abellabel1=newJLabel学号:");staticJTextFieldtextField1=newJTextField("");staticJLabellabel2=newJLabel姓名:");staticJTextFiel
13、dtextField2=newJTextField("");staticJLabellabel3=newJLabel性另:");staticJTextFieldtextField7=newJTextField("");staticJLabellabel4=newJLabel出生日期:");staticJTextFieldtextField3=newJTextField("");staticJLabellabel5=new儿abel政治面貌:");staticJTextFieldtextField8=new
14、JTextField("");static儿abellabel6=newJLabel籍贯)staticJTextFieldtextField4=newJTextField("");staticJLabellabel7=newJLabel保别:");staticJTextFieldtextField9=newJTextField("");static儿abellabel8=newJLabel("业:");staticJTextFieldtextField5=newJTextField(""
15、;);staticJButtonbutton2=newJButton("修改");publicxg()("修改学生信息)(null);(400,400);(30,11,51,33);(86,16,74,22);(162,11,51,33);(192,16,44,22);(241,11,70,33);(275,15,50,25);(31,53,55,33);(86,58,74,22);(241,53,70,33);(296,57,72,25);(163,53,26,33);(191,58,44,22);(30,94,50,33);(86,94,74,22);(163
16、,94,51,33);(190,99,178,22);(115,241,80,33);(this);(label1);(label2);(label3);(label4);(label5);(label6);(label7);(label8);(textField1);(textField2);(textField3);(textField4);(textField5);(textField7);(textField8);(textField9);(button2);(true);)publicstaticvoidmain(Stringargs)throwsException(xga=newx
17、g();)publicvoidactionPerformed(ActionEvente)rim().equals("")(this,"学号不可为空!");)elseif()(StringupdateSql="updatexinxiset学号二"'+()+"',姓名()+”',性别二"'+()+”',出生日期二"'+()+”',政治面貌='"+()+"',籍贯='"+()+"',系
18、别二"'+()+"',专业='"+()+"'"try(updateSql);catch(SQLExceptionse)(null,"修改成功)catch(SQLExceptionse)(s,();Jimport.*;import.*;publicclassscextendsJFrameimplementsActionListener(staticscs;static儿abellabel1=newJLabel学号:");staticJTextFieldtextField1=newJTextFie
19、ld("");staticJLabellabel2=newJLabel姓名:");staticJTextFieldtextField2=newJTextField("");staticJLabellabel3=newJLabel性另:");staticJTextFieldtextField7=newJTextField("");staticJLabellabel4=newJLabel出生日期:");staticJTextFieldtextField3=newJTextField("")
20、;staticJLabellabel5=new儿abel政治面貌:");staticJTextFieldtextField8=newJTextField("");static儿abellabel6=newJLabel籍贯)staticJTextFieldtextField4=newJTextField("");staticJLabellabel7=newJLabel保别:");staticJTextFieldtextField9=newJTextField("");static儿abellabel8=newJLab
21、el("业:");staticJTextFieldtextField5=newJTextField("");staticJButtonbutton4=newJButton("删除");publicsc()throwsException("删除学生信息)(null);(400,400);(30,11,51,33);(86,16,74,22);(162,11,51,33);(192,16,44,22);(241,11,70,33);(275,15,50,25);(31,53,55,33);(86,58,74,22);(241,5
22、3,70,33);(296,57,72,25);(163,53,26,33);(191,58,44,22);(30,94,50,33);(86,94,74,22);(163,94,51,33);(190,99,178,22);(295,241,80,33);(this);(label1);(label2);(label3);(label4);(label5);(label6);(label7);(label8);(textField1);(textField2);(textField3);(textField4);(textField5);(textField7);(textField8);(
23、textField9);(button4);(true);publicstaticvoidmain(String口args)throwsExceptionsca=newsc();publicvoidactionPerformed(ActionEvente)rim().equals("")(this,"学号不可为空!");elseif()(null,"确定要删除该信息嘛n删除的信息将不能恢复,继续","删除确定”,;;import.*;import.*;publicclasscxextendsJFrameimplementsA
24、ctionListenerstaticcxs;static儿abellabell=newJLabel学号:");staticJTextFieldtextFieldl=newJTextField("");staticJLabellabel2=newJLabel姓名:");staticJTextFieldtextField2=newJTextField("");staticJLabellabel3=newJLabel性另:");staticJTextFieldtextField7=newJTextField("&quo
25、t;);staticJLabellabel4=newJLabel出生日期:");staticJTextFieldtextField3=newJTextField("");staticJLabellabel5=new儿abel政治面貌:");staticJTextFieldtextField8=newJTextField("");static儿abellabel6=newJLabel籍贯)staticJTextFieldtextField4=newJTextField("");staticJLabellabel7=n
26、ewJLabel保别:");staticJTextFieldtextField9=newJTextField("");static儿abellabel8=newJLabel("业:");staticJTextFieldtextField5=newJTextField("");staticJButtonbutton3=newJButton("查询)publiccx()throwsException("查询学生信息)(null);(400,400);(30,11,51,33);(86,16,74,22);(1
27、62,11,51,33);(192,16,44,22);(241,11,70,33);(275,15,50,25);(31,53,55,33);(86,58,74,22);(241,53,70,33);(296,57,72,25);(163,53,26,33);(191,58,44,22);(30,94,50,33);(86,94,74,22);(163,94,51,33);(190,99,178,22);(205,241,80,33);(this);(label1);(label2);(label3);(label4);(label5);(label6);(label7);(label8);(textFieldl);(textField2);(textField3);(textField4);(textField5);(textField7);(textField8);(textField9);(button3);(true);publicstaticvoidmain(String口args)throwsExceptioncx
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 家电行业智能化升级策略
- 2026年事业单位B类《综合应用能力》写作题专项训练
- 2026年昆明市五华区民政系统人员招聘笔试备考试题及答案解析
- 2026年安顺市西秀区民政系统人员招聘笔试备考试题及答案解析
- 2015-2025全国事业单位联考E类《综合应用能力》真题试卷+答案解析
- 2026年共青团团校入团刷题题库附答案
- 国际商务谈判口语 教师用书1-7 Reference answer
- 2025山东威海乳山市属国有企业招聘劳务派遣制工作人员28人笔试历年参考题库附带答案详解
- 2025安徽省宣城开盛建设投资集团有限公司招聘5人笔试历年参考题库附带答案详解
- 2025宁夏德渊市政产业投资建设(集团)有限公司面向退役军人招聘复审笔试历年参考题库附带答案详解
- 2026年高考(北京卷)生物试题及答案
- 心房颤动诊断和治疗中国指南
- 2026年高中化学学业水平考试知识点归纳总结(复习必背)
- 2025年香港苏浙公学笔试面试及答案
- 液冷技术原理介绍
- 人教部编版道德与法治五年级下册期末综合测试卷含答案5
- 2026年大学生心理健康教育考试题库附答案【考试直接用】
- 婴儿运动发育迟缓评估
- 2025年广东省纪委遴选笔试试题及答案
- JJG(交通) 113-2014 单轮式横向力系数测试仪
- 技师专业论文撰写指南
评论
0/150
提交评论