學生成績管理系統(tǒng)java程序設計_第1頁
學生成績管理系統(tǒng)java程序設計_第2頁
學生成績管理系統(tǒng)java程序設計_第3頁
學生成績管理系統(tǒng)java程序設計_第4頁
學生成績管理系統(tǒng)java程序設計_第5頁
已閱讀5頁,還剩16頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領

文檔簡介

學生信息管理系統(tǒng)目錄第1章學生信息管理系統(tǒng)簡介 31.1系統(tǒng)功能 31.2系統(tǒng)引用例子 3第2章表的設計 42.1系統(tǒng)數(shù)據(jù)庫表構(gòu)造: 4第3章連接數(shù)據(jù)庫的實現(xiàn) 5第4章系統(tǒng)詳細設計 6 系統(tǒng)登錄模塊設計 6 系統(tǒng)主界面詳細設計 10 管理員操作模塊 104.2.2教師操作模塊 124.2.3學生操作模塊 14第5章系統(tǒng)運行與測試 16管理員登錄 165.2教師登錄 17學生登錄 22辯論記錄 31成績考核表 31學生信息管理系統(tǒng)第1章學生信息管理系統(tǒng)簡介1.1系統(tǒng)功能本系統(tǒng)主要功能:用戶登陸界面。該界面可以選擇使用者的身份,“管理員,教師,學生〞。不同的身份有不同的操作界面和功能權(quán)限。ID號和密碼輸入正確即可登錄。學生管理界面。提供了學生學籍信息的查詢,相關(guān)科目的成績查詢和排名,修改登錄密碼等功能。教師管理界面。提供了對學生學籍信息的查詢,添加,修改,刪除;學生成績的錄入,修改,刪除,查詢班級排名。修改密碼等功能。管理員管理界面。擁有最高的權(quán)限。允許添加教師信息和課程信息等。登錄的用戶信息分別存儲在SQL數(shù)據(jù)庫的“管理員信息表〞,“教師信息表〞,“學籍信息表〞中,如果用戶信息不存在則三張表中,將會無權(quán)利登錄本管理系統(tǒng)。保證了本學生管理系統(tǒng)的平安性。1.2系統(tǒng)引用例子課本P231頁13.05課本P249頁第2章表的設計系統(tǒng)數(shù)據(jù)庫表構(gòu)造:教師信息表:字段名類型空值約束條件教師IDvarchar(8)notnull主鍵教師姓名varchar(8)notnull登錄密碼varchar(8)notnull課程信息表:字段名類型空值約束條件課程號varchar(8)notnull主鍵課程名稱varchar(12)notnull教師IDvarchar(8)notnull外鍵班級信息表:字段名類型空值約束條件班級號varchar(8)notnull主鍵班級名稱varchar(8)notnull班級人數(shù)nchar(4)管理員信息表:字段名類型空值約束條件管理員IDvarchar(10)notnull主鍵登錄密碼varchar(10)notnull成績信息表:字段名類型空值約束條件學號varchar(15)notnull主鍵,外鍵課程號varchar(8)notnull主鍵,外鍵成績smallintnotnull學籍信息表:字段名類型空值約束條件學號intnotnull主鍵姓名varchar(30)notnull性別char(2)班級號varchar(30)notnull

外鍵籍貫char(10)

登錄密碼moneynotnull第3章連接數(shù)據(jù)庫的實現(xiàn)Mysql連接數(shù)據(jù)庫的關(guān)鍵代碼:publicclassDbOperation{ //翻開連接 publicstaticConnectiongetConnection(){ Connectioncon=null; try{ Class.forName("com.mysql.jdbc.Driver"); Stringurl="jdbc:mysql://:3306/member"; Stringuser="root";//定義連接數(shù)據(jù)庫的用戶名 StringpassWord="raoyang";//定義連接數(shù)據(jù)庫的密碼 con=DriverManager.getConnection(url,user,passWord); }catch(Exceptione){ e.printStackTrace(); returncon; //關(guān)閉連接 publicstaticvoidcloseConnection(Connectioncon){ if(con!=null) try{ con.close(); }catch(SQLExceptione){ e.printStackTrace();第4章系統(tǒng)詳細設計 4.1 系統(tǒng)登錄模塊設計1〕運行結(jié)果:2〕實驗代碼://登錄界面importjava.awt.Container;importjava.awt.event.*;importjava.sql.*;importjavax.swing.*;publicclassLoginextendsJFrameimplementsActionListener{ privatestaticfinallongserialVersionUID=1L; JFramemm=newJFrame("您好!請您先登錄!"); JTextFieldt2=newJTextField(null,15); JTextFieldt4=newJPasswordField(null,15); publicStringzh=null;JRadioButtonb=newJRadioButton("教師"); JRadioButtonb1=newJRadioButton("學生"); JRadioButtonb2=newJRadioButton("管理員"); staticConnectioncon; staticPreparedStatementsql; staticResultSetres; publicvoidjiemian(){ mm.setSize(300,340); mm.setVisible(true); mm.setLocation(200,300); JLabelt1=newJLabel("ID號:"); JLabelt3=newJLabel("密碼:"); JButtondenglu2=newJButton("登錄"); denglu2.setContentAreaFilled(false); Containern=mm.getContentPane(); n.setLayout(null); t1.setBounds(40,100,75,35); t2.setBounds(80,100,150,35); t3.setBounds(40,150,75,35); t4.setBounds(80,150,150,35); denglu2.setBounds(120,210,70,30);n.add(t1);n.add(t2);n.add(t3);n.add(t4);n.add(denglu2); b.setBounds(120,50,60,30); b1.setBounds(60,50,80,30); b2.setBounds(180,50,80,30); ButtonGrouprg=newButtonGroup(); b.setSelected(false); b1.setSelected(false); b1.setSelected(false); n.add(b);n.add(b1);n.add(b2);rg.add(b);rg.add(b1);rg.add(b2); b.setContentAreaFilled(false); b1.setContentAreaFilled(false); b2.setContentAreaFilled(false); denglu2.addActionListener(this); denglu2.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEventarg0){ JButtondenglu2=(JButton)arg0.getSource(); booleanflag=true; if(arg0.getSource()==denglu2) if(b1.isSelected()){ Loginapp=newLogin(); app.Login(); con=app.getConnection(); try{ Class.forName("com.mysql.jdbc.Driver"); Stringurl="jdbc:mysql://:3306/課設"; Stringuser="root"; StringpassWord="raoyang"; con=DriverManager.getConnection(url,user,passWord);//連接連接 }catch(Exceptione){ e.printStackTrace(); Stringid=t2.getText().toString(); Stringmm=t4.getText().toString(); try{ Statementsql=con.createStatement(); ResultSetres=sql.executeQuery("select*from學籍");while(res.next()) { if((res.getString("學號").equals(id))&&(res.getString("登入密碼").equals(mm))) {JOptionPane.showMessageDialog(null,"登陸成功"); flag=false; newxscaozuo(); if(flag) {JOptionPane.showMessageDialog(null,"登錄失敗");} res.close(); }catch(SQLExceptione){ e.printStackTrace(); elseif(b.isSelected()){ try{ Class.forName("com.mysql.jdbc.Driver"); Stringurl="jdbc:mysql://:3306/課設"; Stringuser="root"; StringpassWord="raoyang"; con=DriverManager.getConnection(url,user,passWord);//連接連接 }catch(Exceptione){ e.printStackTrace(); Stringid=t2.getText().toString(); Stringmm=t4.getText().toString(); try{ Statementsql=con.createStatement(); ResultSetres=sql.executeQuery("select*from教師");while(res.next())if((res.getString("教師ID").equals(id))&&(res.getString("登入密碼").equals(mm))) {JOptionPane.showMessageDialog(null,"登陸成功"); flag=false; newjscaozuo(); if(flag) {JOptionPane.showMessageDialog(null,"登錄失敗");} res.close(); }catch(SQLExceptione){ e.printStackTrace(); }elseif(b2.isSelected()){ con=null; try{ Class.forName("com.mysql.jdbc.Driver"); Stringurl="jdbc:mysql://:3306/課設"; Stringuser="root"; StringpassWord="raoyang"; con=DriverManager.getConnection(url,user,passWord);//連接連接 }catch(Exceptione){ e.printStackTrace(); Stringid=t2.getText().toString(); Stringmm=t4.getText().toString(); try{ Statementsql=con.createStatement(); ResultSetres=sql.executeQuery("select*from管理員"); while(res.next()) if((res.getString("管理員ID").equals(id))&&(res.getString("登入密碼").equals(mm))) JOptionPane.showMessageDialog(null,"登陸成功"); flag=false; newguanliyuancaozuo(); if(flag) JOptionPane.showMessageDialog(null,"登錄失敗"); res.close(); }catch(SQLExceptione){ e.printStackTrace();publicConnectiongetConnection(){ returnnull;publicvoidactionPerformed(ActionEvente){ t2.setText(null); t4.setText(null);publicstaticvoidmain(Stringargs[]){ Loginapp=newLogin(); app.jiemian(); 系統(tǒng)主界面詳細設計 管理員操作模塊運行結(jié)果:2〕實驗代碼://學生操作界面importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;publicclassguanliyuancaozuoextendsJFrameimplementsActionListener{ publicguanliyuancaozuo(){ setTitle("管理員操作"); setLayout(null); JButtonb1=newJButton("添加教師信息");b1.setBounds(30,20,140,30); JButtonb2=newJButton("修改教師信息");b2.setBounds(30,70,140,30); JButtonb3=newJButton("刪除教師信息");b3.setBounds(30,120,140,30); JButtonb4=newJButton("查詢教師信息");b4.setBounds(30,170,140,30); JButtonb5=newJButton("教師管理界面");b5.setBounds(30,220,140,30); JButtonb6=newJButton("重新登錄");b6.setBounds(30,270,140,30); Containerc=getContentPane(); c.add(b1);c.add(b2);c.add(b3);c.add(b4);c.add(b5);c.add(b6);setSize(220,360); setLocation(100,300); setVisible(true); b1.addActionListener(this); b1.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newtianjiajiaoshi(); b2.addActionListener(this); b2.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newxiugaijiaoshi(); b3.addActionListener(this); b3.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newshanchujiaoshi(); b4.addActionListener(this); b4.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newchaxunjiaoshi(); b5.addActionListener(this); b5.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newjscaozuo(); b6.addActionListener(this); b6.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ Loginapp=newLogin(); app.jiemian();.2教師操作模塊運行結(jié)果:2)實驗代碼://教師操作界面importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;publicclassjscaozuoextendsJFrameimplementsActionListener{ privatestaticfinallongserialVersionUID=5328938865248326479L; publicjscaozuo(){ setTitle("教師操作"); setLayout(null);JLabelaaa=newJLabel("學生信息管理:");JLabelaaa1=newJLabel("學生成績管理:"); JButtonb1=newJButton("顯示學生信息");b1.setBounds(40,45,140,30); JButtonb2=newJButton("添加學生信息");b2.setBounds(200,45,140,30); JButtonb3=newJButton("修改學生信息");b3.setBounds(40,90,140,30); JButtonb4=newJButton("刪除學生信息");b4.setBounds(200,90,140,30); JButtonb5=newJButton("錄入學生成績");b5.setBounds(40,170,140,30); JButtonb6=newJButton("修改學生成績");b6.setBounds(200,170,140,30); JButtonb7=newJButton("刪除學生成績");b7.setBounds(40,215,140,30); JButtonb8=newJButton("查詢學生成績");b8.setBounds(200,215,140,30); JButtonb10=newJButton("退出系統(tǒng)");b10.setBounds(40,285,90,30); JButtonb11=newJButton("修改密碼");b11.setBounds(150,285,90,30);JButtonback=newJButton("重新登錄");back.setBounds(260,285,90,30); aaa.setBounds(15,15,90,30);aaa1.setBounds(15,140,90,30); Containerc=getContentPane(); c.add(b1);c.add(b2);c.add(b3);c.add(b4);c.add(b5);c.add(b6); c.add(b7);c.add(b8);c.add(b10);c.add(b11);c.add(back); c.add(aaa);c.add(aaa1); setSize(400,420); setLocation(200,300); setVisible(true); back.addActionListener(this); back.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ Loginapp=newLogin(); app.jiemian(); b1.addActionListener(this); b1.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newchaxunxs(); b2.addActionListener(this); b2.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newtianjiaxuesheng(); b3.addActionListener(this); b3.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newxiugaixuesheng(); b4.addActionListener(this); b4.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newshanchuxuesheng(); b5.addActionListener(this); b5.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newdengruxschengji(); b6.addActionListener(this); b6.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newxiugaixschengji(); b7.addActionListener(this); b7.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newshanchuxschengji(); b8.addActionListener(this); b8.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newchaxunxschengji(); b11.addActionListener(this); b11.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newxiugaijiaoshimima(); b10.addActionListener(this); b10.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ System.exit(0);學生操作模塊1〕運行結(jié)果:2〕實驗代碼://學生操作界面importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;publicclassxscaozuoextendsJFrameimplementsActionListener{ publicxscaozuo(){ setTitle("學生操作"); setLayout(null); JButtonb1=newJButton("顯示學生信息");b1.setBounds(30,20,140,30); JButtonb2=newJButton("查詢學生成");b2.setBounds(30,70,140,30); JButtonb3=newJButton("修改密碼");b3.setBounds(30,120,140,30); JButtonb4=newJButton("重新登錄");b4.setBounds(30,170,140,30); Containerc=getContentPane(); c.add(b1);c.add(b2);c.add(b3);c.add(b4); setSize(220,260); setLocation(100,300); setVisible(true); b1.addActionListener(this); b1.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newchaxunxs(); b2.addActionListener(this); b2.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newchaxunxschengji(); b3.addActionListener(this); b3.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ newxiugaixueshengmima(); b4.addActionListener(this); b4.addActionListener(newActionListener(){ publicvoidactionPerformed(ActionEventarg0){ Loginapp=newLogin(); app.jiemian(); 第5章系統(tǒng)運行與測試管理員登錄點擊“管理員〞按鈕。輸入正確的ID和密碼。驗證成功則可進入管理員管理界面。管理員ID號和登錄密碼存在數(shù)據(jù)庫中的管理員信息表。表中存在的管理員才允許登錄?!?〕添加教師信息。在彈出的輸入欄中輸入正確的數(shù)據(jù)?!?〕修改教師信息〔3〕刪除信息修改〔4〕查詢教師信息〔5〕教師管理界面同下面的教師操作界面教師登錄 在登錄界面選擇“教師〞按鈕,并輸入正確的ID號和密碼,即可登錄成功!輸入錯誤則會彈出提示!ID號輸入正確,登錄成功!進入教師管理的操作界面:(1)顯示學生信息(2)添加學生信息(3)修改學生信息,輸入正確則顯示!(4)刪除學生信息(5)錄入學生成績(6)修改學生成績(7)刪除學生成績(8)查詢學生成績(9)更改登錄密碼學生登錄(1)查詢個人成績(2)查詢學生成績(3)修改密碼局部實驗代碼://添加教師信息:publicclasstianjiajiaoshiextendsJFrameimplementsActionListener{ privatestaticfinallongserialVersionUID=1L; JFramemm=newJFrame("添加教師信息"); JTextFieldt2=newJTextField(null,30); JTextFieldt4=newJTextField(null,30); JTextFieldt6=newJTextField(null,30); JTextFieldt8=newJTextField(null,30); JTextFieldt10=newJTextField(null,30); staticConnectioncon;staticPreparedStatementsql;staticResultSetres;publicConnectiongetConnection(){ /********省略數(shù)據(jù)庫連接的代碼************/ returncon;privatevoidtianjiajiaoshi(){ mm.setSize(250,300); mm.setVisible(true); mm.setLocation(200,300); JLabelt1=newJLabel("請輸入教師ID:"); JLabelt3=newJLabel("請輸入教師姓名:"); JLabelt5=newJLabel("請輸入教師的登錄密碼:"); JButtonquerenxiugai=newJButton("確認添加"); querenxiugai.setContentAreaFilled(false); Containern=mm.getContentPane(); n.setLayout(null); t1.setBounds(50,10,150,30); t2.setBounds(50,40,150,30); t3.setBounds(50,70,150,30); t4.setBounds(50,100,150,30); t5.setBounds(50,130,150,30); t6.setBounds(50,160,150,30); querenxiugai.setBounds(80,210,90,30); n.add(t1);n.add(t2);n.add(t3);n.add(t4);n.add(t5); n.add(t6); n.add(querenxiugai); querenxiugai.addActionListener(this); querenxiugai.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEventarg0){ JButtonqueren=(JButton)arg0.getSource(); booleanflag=false; if(arg0.getSource()==queren) try{ Class.forName("com.mysql.jdbc.Driver"); Stringurl="jdbc:mysql://:3306/課設"; Stringuser="root"; StringpassWord="raoyang"; con=DriverManager.getConnection(url,user,passWord); }catch(Exceptione){ e.printStackTrace(); Stringa=t2.getText(); Stringb=t4.getText(); Stringc=t6.getText(); try{ Statementsq=con.createStatement(); ResultSetres=sq.executeQuery("select*from教師"); while(res.next()) if((res.getString("教師ID").equals(a))) {JOptionPane.showMessageDialog(null,"該教師已存在!請重新輸入!")};if(!flag) {sql=con.prepareStatement("insertinto教師"+"values(,,)"); sql.setString(1,a); sql.setString(2,b); sql.setString(3,c); sql.executeUpdate(); JOptionPane.showMessageDialog(null,"添加教師信息成功!"); flag=true; newguanliyuancaozuo(); break; }res.close();} }catch(SQLExceptione){ e.printStackTrace();//刪除教師信息publicclassshanchujiaoshiextendsJFrameimplementsActionListener{ privatestaticfinallongserialVersionUID=1L; JFramemm=newJFrame("刪除教師信息"); JTextFieldt2=newJTextField(null,30); staticConnectioncon; staticPreparedStatementsql; staticResultSetres;publicshanchujiaoshi(){ mm.setSize(260,160); mm.setVisible(true); mm.setLocation(260,200); JLabelt1=newJLabel("請輸入要刪除的教師ID:"); JButtonqueren=newJButton("確認"); JButtonquxiao=newJButton("取消"); queren.setContentAreaFilled(false); quxiao.setContentAreaFilled(false); Containern=mm.getContentPane(); n.setLayout(null); t1.setBounds(20,10,200,30); t2.setBounds(20,40,200,30); queren.setBounds(50,80,60,30); quxiao.setBounds(120,80,60,30); n.add(t1);n.add(t2); n.add(queren);n.add(quxiao); ButtonGrouprg=newButtonGroup(); queren.addActionListener(this); queren.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEventarg0){ JButtonquerenxiugai=(JButton)arg0.getSource(); booleanflag=false; if(arg0.getSource()==querenxiugai) try{ Class.forName("com.mysql.jdbc.Driver"); Stringurl="jdbc:mysql://:3306/課設"; Stringuser="root"; StringpassWord="raoyang"; con=DriverManager.getConnection(url,user,passWord); }catch(Exceptione){ e.printStackTrace();Stringid=t2.getText().toString();try{ Statementsq=con.createStatement(); ResultSetres=sq.executeQuery("select*from教師");while(res.next()) if((res.getString("教師ID").equals(id))) sql=con.prepareStatement("deletefrom教師where教師ID="); sql.setString(1,id); sql.executeUpdate(); JOptionPane.showMessageDialog(null,"刪除教師信息成功!"); flag=true; newguanliyuancaozuo(); break;if(!flag) JOptionPane.showMessageDialog(null,"教師ID有誤!請重新輸入!"); }res.close(); }catch(SQLExceptione){ e.printStackTrace();//查詢學生成績publicclasschaxunxschengjiextendsJFrameimplementsActionListener{ privatestaticfinallongserialVersionUID=1L; JFramemm=newJFrame("查詢學生成績"); JTextFieldt2=newJTextField(null,30); staticConnectioncon; staticPreparedStatementsql; staticResultSetres;publicConnectiongetConnection(){ Connectioncon=null;/********省略數(shù)據(jù)庫連接的代碼************/returncon;publicchaxunxschengji(){ mm.setSize(260,160); mm.setVisible(true); mm.setLocation(260,200); JLabelt1=newJLabel("請輸入要查詢成績的學號:"); JButtonqueren=newJButton("確認"); JButtonquxiao=newJButton("取消"); queren.setContentAreaFilled(false); quxiao.setContentAreaFilled(false); Containern=mm.getContentPane(); n.setLayout(null); t1.setBounds(20,10,200,30); t2.setBounds(20,40,200,30); queren.setBounds(50,80,60,30); quxiao.setBounds(120,80,60,30); n.add(t1);n.add(t2); n.add(queren);n.add(quxiao); queren.addActionListener(this); queren.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEventarg0) JButtonqueren=(JButton)arg0.getSource(); booleanflag=false; if(arg0.getSource()==queren) try{ Class.forName("com.mysql.jdbc.Driver"); Stringurl="jdbc:mysql://:3306/課設"; Stringuser="root"; StringpassWord="raoyang"; con=DriverManager.getConnection(url,user,passWord); }catch(Exceptione){ e.printStackTrace();Stringid=t2.getText().toString();try{ Statementsq=con.createStatement(); ResultSetres=sq.executeQuery("select*from成績");while(res.next()) if((res.getString("學號").equals(id))) Stringxh=res.getString("學號"); Stringkch=res.getString("課程號"); Stringcj=res.getString("成績"); flag=true; newxsxscj(id);if(!flag) JOptionPane.showMessageDialog(null,"學號有誤!請重新輸入!"); }res.close(); }catch(SQLExceptione){ e.printStackTrace();publicclassxsxscjextendsJFrame{ staticConnectioncon; staticPreparedStatementsql; staticResultSetres; Stringw="\n"; booleanflag=false; publicxsxscj(Stringa){ try{ Class.forName("com.mysql.jdbc.Driver"); Stringurl="jdbc:mysql://:3306/課設"; Stringuser="root"; StringpassWord="raoyang"; con=DriverManager.getConnection(url,user,passWord); }catch(Exceptione){ e.printStackTrace();setSize(300,200);setTitle("顯示學生成績");Containercp=getContentPane();JTextAreajt=newJTextArea();jt.setLineWrap(true);cp.add(jt);setVisible(true);try{ Statementsq=con.createStatement(); ResultSetres=sq.executeQuery("select*from成績"); while(res.next()) if((res.getString("學號").equals(a))) Stringxh=res.getString("學號"); Stringkch=res.getString("課程號"); Stringcj=res.getString("成績"); w=w+"學號:"+xh+"課程號:"+kch+"成績:"+cj+"\n"; jt.setText(w); flag=true; if(!flag) JOptionPane.showMessageDialog(null,"學號有誤!請重新輸入!"); }res.close(); }catch(SQLExceptione){ e.printStackTrace();//修改學生成績:publicclassxiugaixschengjiextendsJFrameimplementsActionListener{ privatestaticfinallongserialVersionUID=1L; JFramemm=newJFrame("修改學生成績"); JTextFieldt2=newJTextField(null,30); JTextField

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論