java课程设计-学生成绩管理系统设计报告

上传人:aa****6 文档编号:38117883 上传时间:2018-04-27 格式:DOC 页数:94 大小:3.19MB
返回 下载 相关 举报
java课程设计-学生成绩管理系统设计报告_第1页
第1页 / 共94页
java课程设计-学生成绩管理系统设计报告_第2页
第2页 / 共94页
java课程设计-学生成绩管理系统设计报告_第3页
第3页 / 共94页
java课程设计-学生成绩管理系统设计报告_第4页
第4页 / 共94页
java课程设计-学生成绩管理系统设计报告_第5页
第5页 / 共94页
点击查看更多>>
资源描述

《java课程设计-学生成绩管理系统设计报告》由会员分享,可在线阅读,更多相关《java课程设计-学生成绩管理系统设计报告(94页珍藏版)》请在金锄头文库上搜索。

1、信息技术与工程系信息技术与工程系Java程序设计课程设计报告题目:题目: 学生成绩管理系统学生成绩管理系统 班级:班级: 学号:学号: 姓名:姓名: 小组成员:小组成员: 指导教师:指导教师: 报告递交日期:报告递交日期:20112011 年年 1 1 月月 1111 日日一、课设题目与要求1、课程设计题目描述(1)功能要:学生成绩管理系统。该系统主要用于对学生的成绩进行综合管理。要求包括以下模块。每个模块要实现对信息的增加,删除,修改,查询 登陆模块 学生信息管理 课程信息管理 成绩信息管理 学期信息管理(2)系统界面要求:要求系统具有友好的用户界面,界面简洁、操作方便; 2、基本设计要求与

2、分工(如:(1)系统安全、灵活、可靠; (2)功能齐全;(3)操作方便、简单,界面友好;小组的具体分工情况见下表:小组组长小组组长成员成员子项目名称子项目名称具体要求具体要求设计各窗口设计各窗口的创建学生信息管理模块建立学生信息增加,删除,修改,查 询课程信息管理模块建立课程信息增加,删除,修改,查 询整合各各模块程序完整化登陆模块设置登入成绩信息管理模块建立成绩信息增加,删除,修改,查 询学期信息管理模块建立学期信息增加,删除,修改,查 询)二、系统需求分析1、系统需求分析2、系统其他系统分析三、系统的总体设计1、系统总体设计框图,如下形式:登录页面模块选择服务模块课程 信息 管理 模 块成

3、绩 信息 管理 模 块学期 信息 管理 模 块2、数据库表结构定义(如果有使用数据库)及表关系图成绩信息表列 学号英语成绩nasp 成绩window 成绩 java 成绩学生信息表列学号姓名班级地址电话课程信息表列学号课程名称任教教师课时教学模式学生 信息 管理 模 块学期信息表列学号学期3、系统的界面设计图final JButton button = new JButton();button.setText(“登入“);button.addActionListener(this);button.setBounds(40, 207, 106, 28);getContentPane().add(

4、button);final JButton button_1 = new JButton();button_1.setText(“退出“);button_1.addActionListener(this);button_1.setBounds(208, 207, 106, 28);getContentPane().add(button_1);Overridepublic void actionPerformed(ActionEvent e) / TODO Auto-generated method stubif(e.getActionCommand().equals(“登入“)String s

5、tring= String.valueOf(passwordField.getPassword();if(textField.getText().equals(“admin“)new JDialog(farme1,true);farme.setVisible(false);else JOptionPane.showMessageDialog(null, “用户名或密码错误!“, “提示信息“,JOptionPane.ERROR_MESSAGE);if(e.getActionCommand().equals(“退出“)System.exit(0);final JMenu menu = new J

6、Menu();menu.setText(“菜单“); menuBar.add(menu);final JMenuItem newItemMenuItem = new JMenuItem();newItemMenuItem.addActionListener(new ActionListener() public void actionPerformed(final ActionEvent e) xueshengxinxi c=new xueshengxinxi();c.setVisible(true);dispose(););newItemMenuItem.setText(“学生信息管理“);

7、menu.add(newItemMenuItem);final JMenuItem newItemMenuItem_1 = new JMenuItem();newItemMenuItem_1.addActionListener(new ActionListener() public void actionPerformed(final ActionEvent e) kechengxinxi c=new kechengxinxi();c.setVisible(true);dispose(););newItemMenuItem_1.setText(“课程信息管理“); menu.add(newIt

8、emMenuItem_1);final JMenuItem newItemMenuItem_2 = new JMenuItem();newItemMenuItem_2.addActionListener(new ActionListener() public void actionPerformed(final ActionEvent e) chengjixinxi c=new chengjixinxi();c.setVisible(true);dispose(););newItemMenuItem_2.setText(“成绩信息管理“); menu.add(newItemMenuItem_2

9、);final JMenuItem newItemMenuItem_3 = new JMenuItem();newItemMenuItem_3.addActionListener(new ActionListener() public void actionPerformed(final ActionEvent e) xueqixinxi c=new xueqixinxi();c.setVisible(true);dispose(););newItemMenuItem_3.setText(“学期信息管理“); menu.add(newItemMenuItem_3);final JMenuIte

10、m newItemMenuItem_6 = new JMenuItem();newItemMenuItem_6.addActionListener(new ActionListener() public void actionPerformed(final ActionEvent e) System.exit(0););newItemMenuItem_6.setText(“退出“);menu.add(newItemMenuItem_6);JMenu menu_2 = new JMenu();menu_2.setText(“u5173u4E8E“);menuBar.add(menu_2);pub

11、lic static void main(String args) EventQueue.invokeLater(new Runnable() public void run() try xueshengxinxi frame = new xueshengxinxi();frame.setVisible(true); catch (Exception e) e.printStackTrace(););/* Create the frame*/public xueshengxinxi() super();setTitle(“u5B66u751Fu4FE1u606Fu7BA1u7406“);get

12、ContentPane().setLayout(null);setBounds(100, 100, 500, 375);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);String su,sp;su=“sa“;sp=“123“;try Class.forName( “com.microsoft.sqlserver.jdbc.SQLServerDriver“ );cn= DriverManager.getConnection( “jdbc:sqlserver:/127.0.0.1:1757;databaseName=学生成绩管理系统“ , su, s

13、p); catch (ClassNotFoundException e1) e1.printStackTrace(); catch (SQLException e) e.printStackTrace();final JLabel label = new JLabel();label.setText(“学号“); label.setBounds(23, 30, 66, 18);getContentPane().add(label);t1 = new JTextField();t1.setBounds(95, 28, 87, 22);getContentPane().add(t1);final

14、JButton button = new JButton();button.addActionListener(new ActionListener() public void actionPerformed(final ActionEvent e) String sql=“select * from 学生信息 where 学号 =“+t1.getText()+“;try sa=cn.createStatement();re=sa.executeQuery(sql);if(re.next()ta.setText(“学号:“+re.getString(1)+“n 姓名:“+re.getStrin

15、g(2)+“n班级:“+re.getString(3)+“n地址:“+re.getString(4)+“n电话:“+re.getString(5);elseJOptionPane.showMessageDialog(null, “失败“); catch (SQLException e1) e1.printStackTrace(););button.setText(“查询“); button.setBounds(188, 25, 66, 28);getContentPane().add(button);final JButton button_1 = new JButton();button_1.addActionListener(new ActionListener() p

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 毕业论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号