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

正文內(nèi)容

java編寫的學(xué)生基本信息管理系統(tǒng)(編輯修改稿)

2025-02-25 20:32 本頁面
 

【文章內(nèi)容簡介】 (box2)。 (box3)。 (box4)。 (box5)。 (box6)。 (box7)。 (300,300)。 (boxH)。 } } 4. 類 Inquest (1).成員變量 (表 8) 表 8 成員變量 成員變量描述 變量類型 名稱 文本框 JTextField number,name,special,grade, born 單選按鈕 JRadioButton boy,girl 按鈕 JButton search (2)方法 (表 9) 表 9 方法 方法名 功能 備注 Inquest 查詢已錄入學(xué)生信息 按學(xué)號(hào)進(jìn)行查詢 actionPerformed 處理 ActionEvent 事件 接口方法 (4) 代碼實(shí)現(xiàn) import .*。 import .*。 import .*。 public class Inquest{ JPanel p。 JTextField number,name,special,grade,born。 JButton search。 JRadioButton boy,girl。 ButtonGroup group=null。 public Inquest(JPanel p){ ()。 (300,300)。 number=new JTextField(10)。 search=new JButton(查詢 )。 //查詢事件監(jiān)聽 (new ActionListener(){ public void actionPerformed(ActionEvent e){ String[] searched=new String[5]。 String searchnumber=()。 jdbcenroll searchs=new jdbcenroll()。 searched=(searchnumber)。 (searched[0])。 if(searched[1].equals(男 )) { (true)。 (false)。 } else if(searched[1].equals(女 )) { (true)。 (false)。 } (searched[2])。 (searched[3])。 (searched[4])。 } })。 name=new JTextField(10)。 (false)。 group=new ButtonGroup()。 boy=new JRadioButton(男 )。 girl=new JRadioButton(女 )。 (boy)。 (girl)。 special=new JTextField(10)。 (false)。 grade=new JTextField(10)。 (false)。 born=new JTextField(10)。 (false)。 Box box1=()。 (new JLabel(輸入要查詢的學(xué)號(hào) :,))。 (number)。 (search)。 Box box2=()。 (new JLabel(姓名 :,))。 (name)。 Box box3=()。 (new JLabel(性別 :,))。 (boy)。 (girl)。 Box box4=()。 (new JLabel(專業(yè) :,))。 (special)。 Box box5=()。 (new JLabel(年級(jí) :,))。 (grade)。 Box box6=()。 (new JLabel(出生 :,))。 (born)。 Box boxH=()。 (box1)。 (box2)。 (box3)。 (box4)。 (box5)。 (box6)。 (boxH)。 } } 5. 類 ModifySituation (1).成員變量 (表 10) 表 10 成員變量 成員變量描述 變量類型 名稱 文本框 JTextField tnewnumber,tnewname 單選按鈕 JRadioButton sexman,sexwom 按鈕 JButton startset,inset,reset 組合框 JComboBox tnewspecial,tnewgrade, tnewborn 字符串 String numbers (2)方法 (表 11) 表 11 方法 方法名 功能 備注 ModifySituation 修改學(xué)生信息 構(gòu)造方法 actionPerformed 處理 ActionEvent 事件 接口方法 (3)實(shí)現(xiàn)代碼 import .*。 import .*。 import .*。 public class ModifySituation { JTextField tnewnumber,tnewname。 JComboBox tnewspecial,tnewgrade,tnewborn。 JRadioButton sexman,sexwom。 JButton startset,inset,reset。 ButtonGroup group=null。 String numbers=null。 public ModifySituation(JPanel mods) { ()。 (300,300)。 tnewnumber=new JTextField(10)。 numbers=()。 (true)。 tnewname=new JTextField(10)。 (false)。 sexman=new JRadioButton(男 )。 (false)。 sexwom=new JRadioButton(女 )。 (false)。 tnewspecial=new JComboBox()。 (false)。 (計(jì)算機(jī) )。 (英語 )。 (機(jī)械 )。 (汽服 )。 (音樂 )。 (漢語學(xué) )。 // (false)。 tnewgrade=new JComboBox()。 (false)。 (2021 級(jí) )。 (2021 級(jí) )。 (2021 級(jí) )。 (2021 級(jí) )。 (2021 級(jí) )。 (2021 級(jí) )。 (2021 級(jí) )。 //(false)。 tnewborn=new JComboBox()。 (false)。 (1985)。 (1986)。 (1987)。 (1988)。 (1989)。 (1990)。 (1991)。 //(false)。 startset=new JButton(開始修改 )。 (new ActionListener(){ public void actionPerformed(ActionEvent e) { try{ (true)。 (true)。 (true)。 (true)。 (true)。 String[] searched=new String[5]。 String searchnumber=()。 jdbcenroll searchs=new jdbcenroll()。 searched=(searchnumber)。 (searched[0])。 if(searched[1].equals(男 )) { (true)。 (false)。 } else if(searched[1].equals(女 )) { (true)。 (false)。 } ((String)searched[2])。 ((String)searched[3])。 ((String)searched[4])。 }catch(NullPointerException e1) { ()。 } } })。 inset=new JButton(錄入修 改 )。 (new ActionListener(){ public void actionPerformed(ActionEvent e){ String number=()。 String name=()。 String sex=null。 if(()) sex=()。 else if(()) sex=()。 String special=null。 Object sp = null。 String grade=null。 Object gr = null。 String born=null。 Object bo = null。 int index1=()。 switch(index1) { case 0:sp=(0)。break。 case 1:sp=(1)。break。 case 2:sp=(2)。break。 case 3:sp=(3)。break。 case 4:sp=(4)。break。 case 5:sp=(5)。break。 } special=(String)sp。 int index2=()。 switch(index2) { case 0:gr=(0)。break。 case 1:gr=(1)。break。 case 2:gr=(2)。break。 case 3:gr=(3)。break。 case 4:gr=(4)。break。 case 5:gr=(5)。break。 case 6:gr=(6)。break。 } grade=(String)gr。 int index3=()。 switch(index3) { case 0:bo=(0)。break。 case 1:bo=(1)。break。 case 2:bo=(2)。break。 case 3:bo=(3)。break。 case 4:bo=(4)。break。 case 5:bo=(5)。break。 case 6:bo=(6)。break。 } born=(String)bo。 jdbcenroll modifys=new jdbcenroll()。 (number, name, sex, special, grade, born)。 } })。 (false)。 reset=new JButton(重置 )。 (new ActionListener(){ public
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1