当前位置:首页 > 学生信息管理系统数据库java
(sTable); scroll = new JScrollPane(sTable); (scroll); } } public void actionPerformed(ActionEvent e) { if () == \查询\ scst = new SCSelect(); (); } if () == \显示\ (); new SCM(\选课信息管理\ } } }
4. 用于选课信息管理中查询时输入学号的界面 图片: 代码:
public class SCSelect extends JFrame implements ActionListener {elect(); } } }
(四)成绩信息管理 图片: 代码:
class GM extends JFrame implements ActionListener {xecuteQuery(\ } else { rs = stmt .executeQuery(\ + mxh + \ } while () && j1 <= row) { kch = (\ kcm = (\ xxkch = (\ j1++; } } catch (SQLException e) { (); } GAdd gadd = new GAdd(); (\修改成绩\ (); } } public void select() {xecuteQuery(\ + mxh + \ while ()) { playerInfo[j][0] = (\ playerInfo[j][1] = (\ playerInfo[j][2] = (\ j++; } } catch (SQLException e) { (); }
if (playerInfo[0][1] == null) { (); (null, \学号不存在!\ new GM(\成绩信息管理\ } else { sTable = new JTable(playerInfo, columnNames); (sTable); scroll = new JScrollPane(sTable); (scroll); } } public void actionPerformed(ActionEvent e) { if () == \修改成绩\ (); } if () == \查询\ gst = new GSelect(); (); } if () == \显示\ (); new GM(\成绩信息管理\ } } }
5. 用于成绩信息管理中查询时输入学号的界面 图片: 代码:
public class GSelect extends JFrame implements ActionListener {xecuteQuery(\* from sc,c where = and sno='\ + gxh + \ while ()) { (\ (\ (\ i++;elect(); } } }
(五)用户信息管理 图片: 代码: class PM extends JFrame implements ActionListener {xecuteQuery(\* from unpw where qx=1 and un='\ + myh + \ } while () && j1 <= row) { yh = (\ mm = (\ j1++; } } catch (SQLException e) { (); } UAdd uadd = new UAdd(); (\修改\ (); }
} public void select() {isplay(); } else { sTable = new JTable(playerInfo, columnNames); (sTable); scroll = new JScrollPane(sTable); (scroll); } } public void actionPerformed(ActionEvent e) { if () == \修改\ (); } if () == \查询\ pst = new PSelect(); (); } if () == \显示\ (); new PM(\用户信息管理\ } } }
6. 用于用户信息管理中查询时输入用户名的界面 图片: 代码:
public class PSelect extends JFrame implements ActionListener {elect(); } } }
二、学生界面 图片: 代码:
class StudentFrame extends JFrame implements ActionListener { JPanel p1 = new JPanel(); JPanel p2 = new JPanel(); JButton btns = new JButton(\学生信息查看\ JButton btnu = new JButton(\个人信息管理\ JButton btnClose = new JButton(\退出管理系统\ JLabel l = new JLabel(\学生\ StudentFrame() { super(\学生信息管理系统\ setSize(350, 200); add(\ add(\ (l); (btns); (btnu); (btnClose); (this); (this); (this); (false); ; show(); } public void actionPerformed(ActionEvent e) {
if () == \学生信息查看\ new StudentS(); } if () == \个人信息管理\ PPSelect ppst= new PPSelect(); } if () == \退出管理系统\ (0); } } }
(六)个人信息管理
代码:public class PPSelect extends JFrame implements ActionListener {elect(); } } }
7. 用于学生信息查看时输入学号的界面 图片: 代码:
public class StudentS extends JFrame implements ActionListener {elect(); } } }
共分享92篇相关文档