学生学籍管理系统详细设计.docx

上传人:scccc 文档编号:13674672 上传时间:2022-01-21 格式:DOCX 页数:18 大小:170.25KB
返回 下载 相关 举报
学生学籍管理系统详细设计.docx_第1页
第1页 / 共18页
学生学籍管理系统详细设计.docx_第2页
第2页 / 共18页
学生学籍管理系统详细设计.docx_第3页
第3页 / 共18页
学生学籍管理系统详细设计.docx_第4页
第4页 / 共18页
学生学籍管理系统详细设计.docx_第5页
第5页 / 共18页
点击查看更多>>
资源描述

《学生学籍管理系统详细设计.docx》由会员分享,可在线阅读,更多相关《学生学籍管理系统详细设计.docx(18页珍藏版)》请在三一文库上搜索。

1、学生学籍管理详细设计号名级学姓班一、设计题目:学生学籍管理二:设计内容:设计GUI学生学籍管理界面,用户可以加入学生信息,并对基本信息进行修 改,添加,查询,删除。三:设计要求:进行简单的学生信息管理。四:总体设计(1)登陆界面的设计(2 )主窗体的设计(3 )添加学生信息窗体(4)查询学生信息窗体(5 )修改学生信息窗体(6 )删除学生信息窗体(7)事件响应的处理五:具体设计(1 )程序结构的说明:A.入口程序:;B.登陆界面程序:;C.主窗体程序:;D.添加信息窗口程序:;E.修改信息窗口程序:;F.查询信息窗口程序:;G.删除信息窗口程序:;H.程序数据连接:;程序代码及分析说明A.程序

2、源代码(已提交)是程序的入口。使登录窗口位于 窗口中间,并且不可改变窗口大小。是程序的登陆窗体。输入用户名和密码(用 户名和密码在数据库的password表中)点击“进入系统”,然后登陆界面消 失;出现要操作的界面(屏幕左上角)。是添加信息界面。添加基本信息后,点 击“添加信息”按钮,将信息加入xinxi表中。是修改信息界面。输入要修改的 学号或姓名(两者数其一或全部输入),并输入所有信息,点击“修改信息”按 钮(如果数据库中不存在此学号,则弹出对话框“无此学生信息”),若有则修 改。是删除信息界面。输入要删除的学生的学号,点击“删除信息”按钮,弹出确认 删除对话框,即可删除该生信息。是查询信

3、息界面。输入要查询的学生学号,点击“信息查询”按钮,在相应的文 本区里显示查询的信息。H:源代码import etScreenSize();Dimension frameSize=(); if )if()(true);public static void main(String args)(try (); catch(Exception e)(0; )new student();public class DatabaseConnprivate static String user=n;private static String password1;private Connection conn

4、=null;private Statement stmt=null;private ResultSet rs=null; staticdry(巧stmt=createStat(); rs=(sql); return rs;catch(SQLException e) (return null;jpublic void close()try if(rs!=null)();if(stmt!=null)();if(conn!=null)0;catch(SQLException ex)0;importimportpublic class mainframe extends JFrame implemen

5、ts ActionListener(static mainframe s;static JPanel pan=new JPanel();static JLabel labell = new JLabel 用(户”);static JLabel Iabel2 = new JLabel 密(码1);static JTextField textFieldl = new JTextField();static JPasswordField password = new JPasswordField();static JButton button 1 = new JButton(进入系统static J

6、RadioButton radioButton1=new JRadioButton(管理员,true);quals(,sycH)& ().equals(123H)interfac b=new interfac();0;quals() |equals。)(nullJ用户名或密码不能为空);else(nullJ用户名或密码输入有误”);if()quals(HO.equals(巧)this,”用户名或密码不可为空! ”);) else if() new interfac();else(this J您的输入有误”);importpublic class interfac extends JFrame

7、implements ActionListener(static JMenuBar jMenuBar = new JMenuBar();importimportpublic class tj extends JFrame implements ActionListener static tj s;static JLabel labell = new JLabel 学(号:”);static JTextField textFieldl = new JTextField,”);static JLabel Iabel2 = new JLabel(姓名static JTextField textFie

8、ld2 = new JTextField。”); static JLabel Iabel3 = newJLabel(性”别static JTextField textField7=new JTextField。”); static JLabelIabel4 = new JLabel(出“生日期:); static JTextField textField3 = new JTextField(HH); static JLabel Iabel5 = new JLabel(政“治面貌:); static JTextField textField8=new JTextField(巧;static JL

9、abel Iabel6 = new JLabel 籍。贯);static JTextField textField4 = new JTextField(巧;static JLabel label? = new JLabel(系”别:”);static JTextField textField9 = new JTextField(巧;static JLabel labels = new JLabel 专(“业:”);static JTextField textField5 = new JTextField。”); static JButton buttonl = new JButton”曾加)p

10、ublic tj()(增加学生信息”);(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, 94, 5

11、1,33); (190, 99, 178, 22);(25,241,80,33) ; (this);(labe ;(Iabel2);(Iabel3);(Iabel4);(Iabel5);(Iabel6);(label?);(Iabel8);(textFieldl); (textField2); (textField3); (textField4); (textField5); (textField7);(textField8); (textField9); (buttonl);(true);public static void main(String args) throws Exceptio

12、n tj a= new tj();public void actionPerformed(ActionEvent e);importimportpublic class xg extends JFrame implements ActionListener( static xg s;static JLabel labell = new J Label 学(号:”);static JTextField textFieldl = new JTextFieldC,);static JLabel Iabel2 = new JLabel(姓“名static JTextField textField2 =

13、 new JTextField(H);static JLabel labels = new JLabel(性”别static JTextField textField7=new JTextField。);static JLabel Iabel4 = new JLabel(出“生日期static JTextField textField3 = new JTextField。);static JLabel Iabel5 = new JLabel(政治面貌:);static JTextField textField8=new JTextField。);static JLabel Iabel6 = n

14、ew JLabel 籍(“贯”);static JTextField textField4 = new JTextField。”);static JLabel label? = new JLabel(系”别static JTextField textField9 = new JTextField。”); static JLabel labels = new JLabel 专(”业static JTextField textField5 = new JTextField。”); static JButton button2=newJButton(修改 ”);public xg()(修改学生信息)

15、(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, 94, 51,33);(190, 99, 178, 22);(115,241,80,3

16、3);(this);(labe ;(Iabel2);(labH3);(Iabel4);(Iabel5);(Iabel6);(label?);(Iabel8);(textFieldl);(textField2);(textField3);(textField4);(textField5);(textField7);(textField8);(textField9); (button2);(true);public static void main(String args) throws Exception。:E:cd E案件工程度件Q吉果:困件 T程工件42果,Jav.G et-udent,. Java二、软件T可逐件4吉果,Jw fiCudvnCJ3)用户名“ syc”,密码“123” (选“管理员”)进入 系统4)登陆成功后选择操作项(“文件”下的子菜单也可点击使 用):5)点击操作项,如“添加信息”,然后点击“增力口”按 钮如果此学号已存在,则弹出对话框若不存在,则弹出(6)信息查询,修改信息,删除信息的操作与添加信息的一样(只是弹出 的对话框信息不同)。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1