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

正文內(nèi)容

java程序設(shè)計學(xué)生信息管理系統(tǒng)(文件)

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

下一頁面
 

【正文】 er。} public String getSex(){ return sex。} public String getGrade(){ return grade。 JTextField 學(xué)號 ,姓名 ,專業(yè) ,年級 ,出生 。 JPanel p1,p2,p3,p4,p5,p6,pv,ph。 FileInputStream inOne=null。 public StudentManager(){ super(學(xué)生基本信息管理系統(tǒng) )。 年級 =new JTextField(10)。 女 =new JRadioButton(女 ,false)。 查詢 =new JButton(查詢 )。 …………………… ..(論文) 14 錄入 .addActionListener(new InputAct())。 顯示 .addActionListener(new ShowAct())。 (學(xué)號 )。 p3=new JPanel()。 p4=new JPanel()。 (new JLabel(年級 :,))。 (出生 )。 (p2)。 (p6)。 (修改 )。 學(xué)生散列表 =new Hashtable()。 ()。 (lb, )。 setBounds(100,100,600,300)。 FileInputStream inOne=null。 =file。 學(xué)生散列表 =(Hashtable)()。 else{ 顯示 .setText(學(xué)號 姓名 性別 專業(yè) 年級 出生 \n)。 String sex=。 顯示 .append(str)。 ()。} } )。 import .*。 public void setNumber(String number){ =number。} public void setSex(String sex){ =sex。} public void setGrade(String grade){ =grade。} } public class StudentManager extends JFrame{ JLabel lb=new JLabel(錄入請先輸入記錄,查詢、刪除請先輸入學(xué)號,修改是對查詢 + 內(nèi)容改后的保存! )。 JButton 錄入 ,查詢 ,刪除 ,修改 ,顯示 。 File file=null。 ObjectOutputStream outTwo=null。 專業(yè) =new JTextField(10)。 男 =new JRadioButton(男 ,true)。 錄入 =new JButton(錄入 )。 顯示 =new JButton(顯示 )。 刪除 .addActionListener(new DeleteAct())。 (new JLabel(學(xué)號 :,))。 (姓名 )。 (女 )。 p5=new JPanel()。 (new JLabel(出生 :,))。 (p1)。 (p5)。 (查詢 )。 file=new File(學(xué)生信息 .txt)。 (學(xué)生散列表 )。 (new BorderLayout())。 setDefaultCloseOperation(EXIT_ON_CLOSE)。} class InputAct implements ActionListener{ public void actionPerformed(ActionEvent e){ 修改 .setEnabled(false)。 inTwo=new ObjectInputStream(inOne)。 } catch(Exception ee){(創(chuàng)建散列表出現(xiàn)問題! )。 int ok=(null,m,確認 , ,)。 String borth=出生 .getText()。} 學(xué)生 =new Student()。 學(xué)生 .setGrade(grade)。 outTwo=new ObjectOutputStream(outOne)。 ()。 專業(yè) .setText(null)。 (null,warning, 警告 ,)。 inTwo=new ObjectInputStream(inOne)。 } catch(Exception ee){(散列表有問題! )。 專業(yè) .setText(())。} else{女 .setSelected(true)。 } } else{ 修改 .setEnabled(false)。 …………………… ..(論文) 24 String name=姓名 .getText()。 String sex=null。 學(xué)生 .setNumber(number)。 學(xué)生 .setBorth(borth)。 學(xué)生散列表 .put(number, 學(xué)生 )。 學(xué)號 .setText(null)。 出生 .setText(null)。 String number=學(xué)號 .getText()。 ()。 專業(yè) .setText(())。} else{女 .setSelected(true)。 try{ outOne=new FileOutputStream(file)。 ()。 年級 .setText(null)。 姓名 .setText(null)。 } else{ String warning=該學(xué)號不存在! 。 } } } class ShowAct implements ActionListener{ public void actionPerformed(ActionEvent e){ new StudentShow(file)。 ObjectInputStream inTwo=null。 顯示 =new JTextArea(16,30)。 ()。 for(Enumeration enm=學(xué)生散列表 .elements()。 if(().equals(男 ))sex=男 。 } } JScrollPane scroll=new JScrollPane(顯示 )。 } } }(Center,scroll)。 addWindowListener(new WindowAdapter(){ public void \ …………………… ..(論文) 28 參 考 文 獻 [1] 鄧良松 劉海巖 陸麗娜.軟件工程 [M].西安:西安電子科技大學(xué)出版社, [2] 閃四清 .SQL Server2021 實用教程 [M]. 北京:人民出版社 , [3] 蔡劍 景楠著《 Java Web 應(yīng)用開發(fā): J2EE 和 Tomcat》清華大學(xué) 出版社 [4] 侯曉強 ,徐春榮 ,勾海波 .Java服務(wù)器編程實例 [M].中國青年出版社 , . [5] JSP 應(yīng)用開發(fā)詳解 (含光盤 ) 電子工業(yè)出版社 [6] 簡兆權(quán) .一類智能管理信息系統(tǒng)的設(shè)計與實現(xiàn) [M].計算機應(yīng)用研究 ,1998,15(2):4345. [7] 汪永明 .基于 B/S系統(tǒng)的在線考試系統(tǒng) .微機發(fā)展, 2021(1): 3235. [8] 耿祥義,張躍平, JSP實用教程 .清華大學(xué)出版社, . [9] 蔡翠平等 .Java程序設(shè)計 [M].北京 : 清 華大學(xué)出版社 , [10] 肖剛 .Java Web 服務(wù)器應(yīng)用程序設(shè)計 [M].西安:電子工業(yè)出版社, [11] 鄧子云,張賜 .JSP網(wǎng)絡(luò)編程 .電子工業(yè)出版社, 2021: 4548 [12] 國家教委學(xué)生司 .大學(xué)生管理基礎(chǔ)知識 [M].北京師范大學(xué)出版社 ,1991,5978. [13] XML/JSP Programming Guide 網(wǎng)頁編程教程 經(jīng)濟科學(xué)出版社 [14] JavaScript 實例教程 高等教育出版社 …………………… ..(論文) 29 …………………… ..(論文) 30 …………………… ..(論文) 31 。 setVisible(true)。 windowClosing(WindowEvent e){setVisible(false)。 String str=()+,+()+,+sex+, +()+,+()+,+()+\n。){ Student stu=(Student)()。 } catch(Exception ee){} if(學(xué)生散列表 .isEmpty())顯示 .append(目前還沒有學(xué)生的信息記錄! \n)。 inTwo=new ObjectInputStream(inOne)。 public StudentShow(File file){ super(new JFrame(),顯示對話框 )。 JTextArea 顯示 =null。 } } else{ …………………… ..(論文) 26 String warning=必須輸入學(xué)號! 。 年級 .setText(null)。 } catch(Exception ee){(ee)。 姓名 .setText(null)。 (學(xué)生散列表 )。 int ok=(null,m,確認 , ,)。 出生 .setTe
點擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1