freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java編寫的學(xué)生基本信息管理系統(tǒng)-閱讀頁(yè)

2025-02-09 20:32本頁(yè)面
  

【正文】 case 6:gr=(6)。 } grade=(String)gr。 switch(index3) { case 0:bo=(0)。 case 1:bo=(1)。 case 2:bo=(2)。 case 3:bo=(3)。 case 4:bo=(4)。 case 5:bo=(5)。 case 6:bo=(6)。 } born=(String)bo。 (number, name, sex, special, grade, born)。 (false)。 (new ActionListener(){ public void actionPerformed(ActionEvent e) { ()。 (false)。 } })。 (sexman)。 Box box1=()。 (tnewnumber)。 Box box2=()。 (tnewname)。 (new JLabel((新 )性別 :,))。 (sexwom)。 (new JLabel((新 )專業(yè) :,))。 Box box5=()。 (tnewgrade)。 (new JLabel((新 )出生 :,))。 Box box7=()。 (reset)。 (box1)。 (box3)。 (box5)。 (box7)。 (boxH)。 import .*。 public class Delete{ JTextField number,name,special,grade,born。 JRadioButton boy,girl。 public Delete(JPanel delpanel) { ()。 number=new JTextField(10)。 String searchnumber=()。 searched=(searchnumber)。 if(searched[1].equals(男 )) { (true)。 } else if(searched[1].equals(女 )) { (true)。 } (searched[2])。 (searched[4])。 name=new JTextField(10)。 delete=new JButton(刪除 )。 jdbcenroll del=new jdbcenroll()。 } })。 girl=new JRadioButton(女 )。 (boy)。 special=new JTextField(10)。 grade=new JTextField(10)。 born=new JTextField(10)。 Box box1=()。 (number)。 Box box2=()。 (name)。 (new JLabel(性別 :,))。 (girl)。 (new JLabel(專業(yè) :,))。 Box box5=()。 (grade)。 (new JLabel(出生 :,))。 Box boxH=()。 (box2)。 (box4)。 (box6)。 (boxH)。 import 。 import 。 import 。 import 。 String dbURL=jdbc: String userName=sa。 String namepwd=select * from loads where username=? and password=?。 String selects=select * from stuinformation where stunumber=?。 String searched=select * from stuinformation where stunumber=?。 String setload=update loads set username=?,password=?。 PreparedStatement pstmt=null。 //判斷用戶名和密碼是否正確 public boolean check(String name,String pwd) { try { (drivername)。 pstmt=(namepwd)。 (2,pwd)。 while(()) { return true。 } finally { try { ()。 }catch(SQLException e) { ()。 } //錄入學(xué)生基本信息 public void input(String tnumber,String tname,String tsex,String tspecial,String tgrade,String tborn ) { try{ (drivername)。 //Date birth=(Date) new (yyyMMdd).parse(tborn)。 else { //檢查輸入的學(xué)號(hào)是否已經(jīng)存在 pstmt=(searched)。 rs=()。 } else { if(()==0 || ()==0 || ()==0 || ()==0) (null,選項(xiàng)不能為空 !,警告 ,)。 (1, tnumber)。 (3,tsex)。 (5,tgrade)。 ()。 } } } }catch(Exception e) { ()。 ()。 } } } //修改學(xué)生基本信息 public void modify(String tnumber,String tname,String tsex,String tspecial,String tgrade,String tborn) { try { (drivername)。 //Date birth=(Date) new (yyyMMdd).parse(tborn)。 } else { pstmt=(searched)。 rs=()。 (1,tname)。 (3,tspecial)。 (5,tborn)。 ()。 } else if(!()) (null,該 學(xué)號(hào)不存在 !請(qǐng)確認(rèn)后再輸入 !,警告 ,)。 } finally { try { ()。 }catch(SQLException e) { ()。 (drivername)。 if(()==0){ (null,學(xué)號(hào)字段不能為空 !,警告 ,)。 (1,tnumber)。 while(()) { res[0]=(stuname)。 res[2]=(stuspecial)。 res[4]=(stubirth)。 } if(!()) (null,該學(xué)號(hào)不存在 !請(qǐng)確認(rèn)后再輸入 !,警告 ,)。 } finally { try { ()。 }catch(SQLException e) { ()。 } //刪除學(xué)生基本信息 public void delete(String tnumber) { try{ (drivername)。 if(()==0) (null,學(xué)號(hào)不能為空 !,警告 ,)。 (1,tnumber)。 if(()==false) (null,該學(xué)號(hào)不存在 ,提示 ,)。 if(results==) { pstmt=(deleted)。 ()。 (null,刪除成功 !,提示 ,)。 } finally { try { ()。 }catch(SQLException e) { ()。 conn=(dbURL,userName,userPwd)。 (1,name)。 ()。 }catch(Exception e) { ()。 ()。 } } } } 8. 類 Layoututil 功能描述 :為 StudentManagers設(shè)置布局 實(shí)現(xiàn)代碼如下 : import 。 import 。 public class Layoututil { public static void add(Container container,int fill,int anchor,int weightx, int weighty,int x, int y,int width,int height,Component p) { GridBagConstraints constraints=new GridBagConstraints()。 =anchor。 =weighty。 =y。 =height。 } public static void add(Container container,int fill,int anchor,int weightx, int weighty,int x, int y,int width,int height,Component p,Insets insets) { GridBagConstraints constraints=new GridBagConstraints()。 =fill。 =weightx。 =x。 =width。 (p,constraints)。 Java 課程設(shè)計(jì)是整個(gè)教學(xué)過(guò)程的重要環(huán)節(jié),是學(xué)生綜合運(yùn)用所學(xué)知識(shí)解決實(shí)際問(wèn)題能力的考查。這次課程設(shè)計(jì)是一次難得的實(shí)際鍛煉機(jī)會(huì),通過(guò)理論聯(lián)系實(shí)際,讓我對(duì)過(guò)去學(xué)到的知識(shí)有了更深的印象。同時(shí),我也學(xué)到了許多知識(shí),得到了很好的 鍛煉。 通過(guò)自己動(dòng)手開發(fā)學(xué)生信息管理系統(tǒng),我不僅學(xué)會(huì)了簡(jiǎn)單的管理模式,也加深了對(duì)軟件開發(fā)的理解。隨著設(shè)計(jì)的深入和不斷的對(duì)系統(tǒng)進(jìn)行補(bǔ)充和完善,我領(lǐng)悟到計(jì)算機(jī)系統(tǒng)的博大精深和一些管理設(shè)計(jì)的巧妙思路,讓我有一種豁然開朗的感覺,同時(shí)我對(duì)Java 的掌握也進(jìn)一步加深,這對(duì)我以后從事計(jì)算機(jī)方向的工作奠定了一定的基礎(chǔ)。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1