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

正文內(nèi)容

java程序設計課程設計報告之學生信息管理系統(tǒng)(編輯修改稿)

2025-06-19 01:58 本頁面
 

【文章內(nèi)容簡介】 DeleteStudent(){ Snum = new JTextField(20)。 del = new JButton(刪除 )。 (this)。 (this)。 Sname = new JTextField(20)。 (false)。 Smajor = new JTextField(20)。 (false)。 Sgrade = new JTextField(20)。 (false)。 Sbirth = new JTextField(20)。 (false)。 group = new ButtonGroup()。 boy = new JRadioButton(男 ,false)。 girl = new JRadioButton(女 ,false)。 (boy)。 (girl)。 Box box0 = ()。 咸寧學院 計算機科學與技術(shù)學院 課 程 設 計 報 告 19 JLabel label = new JLabel(學生信息刪除 ,)。 (new Font(黑體 , , 25))。 (label)。 Box box1 = ()。 (new JLabel(學號: ,))。 (Snum)。 (del)。 Box box2 = ()。 (new JLabel(姓名: ,))。 (Sname)。 Box box3 = ()。 (new JLabel(性別: ,))。 (boy)。 (girl)。 Box box4 = ()。 (new JLabel(專業(yè) : ,))。 (Smajor)。 Box box5 = ()。 (new JLabel(年級: ,))。 (Sgrade)。 Box box6 = ()。 (new JLabel(出生: ,))。 (Sbirth)。 Box boxH = ()。 (box0)。 (box1)。 (box2)。 (box3)。 (box4)。 (box5)。 (box6)。 (())。 JPanel messPanel = new JPanel()。 (boxH)。 ()。 setLayout(new BorderLayout())。 咸寧學院 計算機科學與技術(shù)學院 課 程 設 計 報 告 20 add(messPanel,)。 validate()。 setVisible(true)。 } //處理事件 public void actionPerformed(ActionEvent e) { if(() == del||() == Snum){ String number = 。 number = ()。 String rs[] = new String[4]。 rs = (number)。 if(rs != null){ String q = 該生信息已存在,您想刪除該生的基本信息嗎? 。 int yes = (this,q, 確認,)。 if(yes == ){ (rs[0])。 (rs[2])。 (rs[3])。 (rs[4])。 if(rs[1].equals(男 )) (true)。 else (true)。 String m = 確定要刪除該學號及全部信息嗎? 。 int ok = (this,m, 確認,)。 if(ok == ){ (number)。 } else if(ok == ){ (null)。 (null)。 (null)。 (null)。 咸寧學院 計算機科學與技術(shù)學院 課 程 設 計 報 告 21 (null)。 } } else if(yes == ){ (null)。 (null)。 (null)。 (null)。 (null)。 } } else{ (this,該學號不存在! ,警告 , )。 } } } } package Stu。 import .*。 import .*。 import .*。 import .*。 public class InputStudent extends JPanel implements ActionListener{ /** * */ private static final long serialVersionUID = 1L。 /** * 錄入界面 */ StuBean addStu = new StuBean()。 StuBean queryStu = new StuBean()。 //設置“錄入界面”窗口 咸寧學院 計算機科學與技術(shù)學院 課 程 設 計 報 告 22 JTextField Snum,Sname,Sgrade,Sbirth。 JComboBox Smajor。 JRadioButton boy,girl。 ButtonGroup group = null。 JButton entry,reset。 public InputStudent(){ Snum = new JTextField(20)。 Sname = new JTextField(20)。 Smajor = new JComboBox()。 try{ File f = new File(專業(yè) .txt)。 FileReader fr = new FileReader(())。 BufferedReader br = new BufferedReader(fr)。 String s = null。 while((s= ())!=null) (s)。 ()。 ()。 }catch(IOException exp){} Sgrade = new JTextField(20)。 Sbirth = new JTextField(20)。 group = new ButtonGroup()。 boy = new JRadioButton(男 ,true)。 girl = new JRadioButton(女 ,false)。 (boy)。 (girl)。 entry = new JButton(錄入 )。 reset = new JButton(重置 )。 (this)。 (this)。 Box box0 = ()。 JLabel label = new JLabel(學生信息錄入 ,)。 (new Font(黑體 , , 25))。 (label)。 Box box1 = ()。 (new JLabel(學號: ,))。 咸寧學院 計算機科學與技術(shù)學院 課 程 設 計 報 告 23 (Snum)。 Box box2 = ()。 (new JLabel(姓名: ,))。 (Sname)。 Box box3 = ()。 (new JLabel(性別: ,))。 (boy)。 (girl)。 Box box4 = ()。 (new JLabel(專業(yè): ,))。 (Smajor)。 Box box5 = ()。 (new JLabel(年級: ,))。 (Sgrade)。 Box box6 = ()。 (new JLabel(出生: ,))。 (Sbirth)。 Box boxH = ()。 (box0)。 (box1)。 (box2)。 (box3)。 (box4)。 (box5)。 (box6)。 (())。 JPanel putButton = new JPanel()。 (entry)。 (reset)。 JPanel messPanel = new JPanel()。 (boxH)。 ()。 ()。 setLayout(new BorderLayout())。 add(messPanel,)。 add(putButton,)。 咸寧學院 計算機科學與技術(shù)學院 課 程 設 計 報 告 24 validate()。 setVisible(true)。 } //事件處理 public void actionPerformed(ActionEvent e) { if(() == entry){ String number = 。 number = ()。 String rs[] = new String[4]。 rs = (number)。 if(rs != null){ String w = 該生基本信息已存在,請到修改頁面修改! 。 (this, w, 警告 , )。 } else{ String name = ()。 String major = (String)()。 String grade = ()。 String birth = ()。 String sex = null。 if(()) sex = ()。 if(()) sex = ()。 (number, name, sex, major, grade, birth)。 } } else if(() == reset){ clearMess()。 } } public void clearMess(){ (null)。 (null)。 (null)。 咸寧學院 計算機科學與技術(shù)學院 課 程 設 計 報 告 25 (null)。 } } package Stu。 import .*。 import .*。 import .*。 import .*。 public class MainWindow extends JFrame implements ActionListener { /** * */ private static final long serialVersionUID = 1L。 /** * 主窗口的初始化 */ InputStudent ins。 ModifyStudent mos。 QueryStudent qus。 DeleteStudent des。 // 建立菜單欄 JMenuBar bar。 // 建立“系統(tǒng)管理”菜單組 JMenu menuSystem。 JMenuItem itemExit。 JMenuItem itemWel。 // 建立“學生管理”菜單組 JMenu menuStu。 JMenuItem itemSearch。 JMenuItem itemAdd。 JMenuItem itemEdit。 JMenuItem itemDelete。 File file = null。 咸寧學院 計算機科學與技術(shù)學院 課 程 設 計 報 告 26 CardLayout card。 JLabel label = null。 JPanel pCenter。 public MainWindow() { // 生成“系統(tǒng)管理”組 menuSystem = new JMenu(系統(tǒng)管理 )。
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1