付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 第二单元第3课母亲河颂-《演唱 长江之歌》教学设计-2026-2027学年沪教版(新教材)初中音乐八年级上册
- 2026年南昌市青云谱区事业单位人员招聘笔试备考试题及答案详解
- 2026年宁波市镇海区公务员人员招聘笔试参考题库及答案详解
- 2025-2026学年何家桥说课稿
- 2026年广东省云浮市公务员人员招聘笔试模拟试题及答案详解
- 2025-2026学年国画4级说课稿
- 2026年安徽省亳州市公务员人员招聘考试备考试题及答案详解
- 2026年南京市玄武区公务员人员招聘考试模拟试题及答案详解
- 2027北京市定向选调和“优培计划”照片尺寸像素要求笔试参考题库及答案解析
- 2026年西安市新城区公务员人员招聘笔试模拟试题及答案详解
- T/TMAC 246-2025多参数水质分析仪
- 2026年注册安全工程师初级实务真题试卷附答案
- 2026秋初中《知识点总结》9年级上册(历史)背诵版
- 补充耕地质量鉴定技术规范
- 中级注册安全工程师《安全生产法律法规》2026年考点归纳
- 公路工程隐蔽验收监理实施细则
- XF846-2009 消防产品身份信息管理
- 《生活垃圾渗滤液浓缩液固化原地利用技术规程》编制说明
- 2025~2026学年河南省安阳一中、鹤壁一中、新乡一中三校高一上学期第一次联考化学试卷
- 湖南省定向选调考试真题2024
- 《神经内科临床路径》课件
评论
0/150
提交评论