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

正文內容

java編寫的學生基本信息管理系統(tǒng)-預覽頁

2025-02-21 20:32 上一頁面

下一頁面
 

【正文】 tudentManagers me=new StudentManagers()。 JPanel pp。 txtpwd=new JTextField(10)。 JButton ok=new JButton(重新注冊 )。 JButton cancel=new JButton(取消 )。 (new JLabel(請輸入新的管理員姓名 :,))。 (txtpwd)。 Box box4=()。 (box1)。 (300,200)。 (true)。 public class StudentSituation { JTextField txtnumber,txtname。 JButton truein,resetin。 txtname=new JTextField(10)。 txtspecial=new JComboBox()。 (汽服 )。 (2021 級 )。 (2021 級 )。 (1985)。 (1989)。 (new ActionListener(){ public void actionPerformed(ActionEvent e){ String number=()。 else if(()) sex=()。 Object gr = null。 switch(index1) { case 0: sp=(0)。 case 2:sp=(2)。 case 4:sp=(4)。 } special=(String)sp。 case 1:gr=(1)。 case 3:gr=(3)。 case 5:gr=(5)。 } grade=(String)gr。 case 1:bo=(1)。 case 3:bo=(3)。 case 5:bo=(5)。 } born=(String)bo。 resetin=new JButton(重置 )。 (false)。 Box box1=()。 (new JLabel(姓名 :,))。 (radioboy)。 (txtspecial)。 Box box6=()。 (truein)。 (box2)。 (box6)。 } } 4. 類 Inquest (1).成員變量 (表 8) 表 8 成員變量 成員變量描述 變量類型 名稱 文本框 JTextField number,name,special,grade, born 單選按鈕 JRadioButton boy,girl 按鈕 JButton search (2)方法 (表 9) 表 9 方法 方法名 功能 備注 Inquest 查詢已錄入學生信息 按學號進行查詢 actionPerformed 處理 ActionEvent 事件 接口方法 (4) 代碼實現(xiàn) import .*。 JTextField number,name,special,grade,born。 public Inquest(JPanel p){ ()。 //查詢事件監(jiān)聽 (new ActionListener(){ public void actionPerformed(ActionEvent e){ String[] searched=new String[5]。 (searched[0])。 (false)。 } })。 boy=new JRadioButton(男 )。 special=new JTextField(10)。 born=new JTextField(10)。 (number)。 (name)。 (girl)。 Box box5=()。 (new JLabel(出生 :,))。 (box2)。 (box6)。 import .*。 JButton startset,inset,reset。 (300,300)。 tnewname=new JTextField(10)。 sexwom=new JRadioButton(女 )。 (計算機 )。 (音樂 )。 (false)。 (2021 級 )。 //(false)。 (1986)。 (1990)。 (new ActionListener(){ public void actionPerformed(ActionEvent e) { try{ (true)。 (true)。 searched=(searchnumber)。 } else if(searched[1].equals(女 )) { (true)。 ((String)searched[4])。 (new ActionListener(){ public void actionPerformed(ActionEvent e){ String number=()。 else if(()) sex=()。 Object gr = null。 switch(index1) { case 0:sp=(0)。 case 2:sp=(2)。 case 4:sp=(4)。 } special=(String)sp。 case 1:gr=(1)。 case 3:gr=(3)。 case 5:gr=(5)。 } grade=(String)gr。 case 1:bo=(1)。 case 3:bo=(3)。 case 5:bo=(5)。 } born=(String)bo。 (false)。 (false)。 (sexman)。 (tnewnumber)。 (tnewname)。 (sexwom)。 Box box5=()。 (new JLabel((新 )出生 :,))。 (reset)。 (box3)。 (box7)。 import .*。 JRadioButton boy,girl。 number=new JTextField(10)。 searched=(searchnumber)。 } else if(searched[1].equals(女 )) { (true)。 (searched[4])。 delete=new JButton(刪除 )。 } })。 (boy)。 grade=new JTextField(10)。 Box box1=()。 Box box2=()。 (new JLabel(性別 :,))。 (new JLabel(專業(yè) :,))。 (grade)。 Box boxH=()。 (box4)。 (boxH)。 import 。 import 。 String namepwd=select * from loads where username=? and password=?。 String searched=select * from stuinformation where stunumber=?。 PreparedStatement pstmt=null。 pstmt=(namepwd)。 while(()) { return true。 }catch(SQLException e) { ()。 //Date birth=(Date) new (yyyMMdd).parse(tborn)。 rs=()。 (1, tnumber)。 (5,tgrade)。 } } } }catch(Exception e) { ()。 } } } //修改學生基本信息 public void modify(String tnumber,String tname,String tsex,String tspecial,String tgrade,String tborn) { try { (drivername)。 } else { pstmt=(searched)。 (1,tname)。 (5,tborn)。 } else if(!()) (null,該 學號不存在 !請確認后再輸入 !,警告 ,)。 }catch(SQLException e) { ()。 if(()==0){ (null,學號字段不能為空 !,警告 ,)。 while(()) { res[0]=(stuname)。 res[4]=(stubirth)。 } finally { try { ()。 } //刪除學生基本信息 public void delete(String tnumber) { try{ (drivername)。 (1,tnumber)。 if(results==) { pstmt=(deleted)。 (null,刪除成功 !,提示 ,)。 }catch(SQLException e) { ()。 (1,name)。 }catch(Exception e) { ()。 } } } } 8. 類 Layoututil 功能描述 :為 StudentManagers設置布局 實現(xiàn)代碼如下 : 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()。 =weighty。 =height。 =fill。 =x。 (p,constraints)。這次課程設計是一次難得的實際鍛煉機會,通過理論聯(lián)系實際,讓我對過去學到的知識有了更深的印象。 通過自己動手開發(fā)學生信息管理系統(tǒng),我不僅學會了簡單的管理模式,也加深了對軟件開發(fā)的理解。
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1