學生學籍管理系統(tǒng)含java源代碼_第1頁
學生學籍管理系統(tǒng)含java源代碼_第2頁
學生學籍管理系統(tǒng)含java源代碼_第3頁
學生學籍管理系統(tǒng)含java源代碼_第4頁
學生學籍管理系統(tǒng)含java源代碼_第5頁
免費預覽已結束,剩余9頁可下載查看

下載本文檔

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

文檔簡介

1、學生學籍管理詳細設計學號:姓名:班級:一、設計題目:學生學籍管理二:設計內(nèi)容:設計GUI學生學籍管理界面,用戶可以加入學生信息,并對基本信息進行修改,添加,查詢,刪除。三:設計要求:進行簡單的學生信息管理。四:總體設計(1)登陸界面的設計(2)主窗體的設計(3)添加學生信息窗體(4)查詢學生信息窗體(5)修改學生信息窗體(6)刪除學生信息窗體(7)事件響應的處理五:具體設計(1)程序結構的說明:A入口程序:;B.登陸界面程序:;C主窗體程序:;D添加信息窗口程序:E修改信息窗口程序:F查詢信息窗口程序:;G刪除信息窗口程序:;H.程序數(shù)據(jù)連接:;(2)程序代碼及分析說明A.程序源代碼(已提交)

2、是程序的入口。使登錄窗口位于窗口中間,并且不可改變窗口大小。是程序的登陸窗體。輸入用戶名和密碼(用戶名和密碼在數(shù)據(jù)庫的password表中)點擊“進入系統(tǒng)”,然后登陸界面消失;出現(xiàn)要操作的界面(屏幕左上角)。是添加信息界面。添加基本信息后,點擊“添加信息”按鈕,將信息加入xinxi表中。是修改信息界面。輸入要修改的學號或姓名(兩者數(shù)其一或全部輸入),并輸入所有信息,點擊“修改信息”按鈕(如果數(shù)據(jù)庫中不存在此學號,則彈出對話框“無此學生信息”),若有則修改。是刪除信息界面。輸入要刪除的學生的學號,點擊“刪除信息”按鈕,彈出確認刪除對話框,即可刪除該生信息。是查詢信息界面。輸入要查詢的學生學號,點

3、擊“信息查詢”按鈕,在相應的文本區(qū)里顯示查詢的信息。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('進入系統(tǒng)");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("業(yè):");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("業(yè):");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、別二"'+()+"',專業(yè)='"+()+"'"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("業(yè):");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刪除的信息將不能恢復,繼續(xù)","刪除確定”,;;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("業(yè):");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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論