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

正文內(nèi)容

java版學(xué)籍管理系統(tǒng)源代碼-資料下載頁

2025-01-20 14:56本頁面

【導(dǎo)讀】package學(xué)籍管理系統(tǒng);JTextField學(xué)號,姓名,專業(yè),年級,出生;newJLabel"輸入要刪除的學(xué)號:",;Stringm"確定要刪除該學(xué)號及全部信息嗎?Stringwarning"該學(xué)號不存在!

  

【正文】 package 學(xué)籍管理系統(tǒng) 。 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Administrator */ import .*。 import t.*。 import .*。 import .*。 import .*。 public class StudentSituation extends JPanel implements ActionListener /** * */ private static final long serialVersionUID 1L。 Hashtable String, Student 基本信息表 null。 JTextField 學(xué)號 ,姓名 ,專業(yè) ,年級 ,出生 。 JRadioButton 男 ,女 。 Student 學(xué)生 null。 ButtonGroup group null。 JButton 錄入 ,重置 。 FileInputStream inOne null。 ObjectInputStream inTwo null。 FileOutputStream outOne null。 ObjectOutputStream outTwo null。 File file null。 public StudentSituation File file file。 學(xué)號 new JTextField 10 。 姓名 new JTextField 10 。 專業(yè) new JTextField 10 。 年級 new JTextField 10 。 出生 new JTextField 10 。 group new ButtonGroup 。 男 new JRadioButton 男 ,true 。 女 new JRadioButton 女 ,false 。 男 。 女 。 錄入 new JButton 錄入 。 重置 new JButton 重置 。 錄入 .addActionListener this 。 重置 .addActionListener this 。 Box box1 。 new JLabel 學(xué)號 :, 。 學(xué)號 。 Box box2 。 new JLabel 姓名 :, 。 姓名 。 Box box3 。 new JLabel 性別 :, 。 男 。 女 。 Box box4 。 new JLabel 專業(yè) :, 。 專業(yè) 。 Box box5 。 new JLabel 年級 :, 。 年級 。 Box box6 。 new JLabel 出生 :, 。 出生 。 Box boxH 。 box1 。 box2 。 box3 。 box4 。 box5 。 box6 。 。 JPanel pCenter new JPanel 。 boxH 。 setLayout new BorderLayout 。 add pCenter, 。 JPanel pSouth new JPanel 。 錄入 。 重置 。 add pSouth, 。 validate 。 public void actionPerformed ActionEvent e if 錄入 String number 。 number 學(xué)號 .getText 。 if 0 try inOne new FileInputStream file 。 inTwo new ObjectInputStream inOne 。 基本信息表 Hashtable String, Student 。 。 。 catch Exception ee if 基本信息表 .containsKey number String warning 該生基本信息已存 在 ,請到修改頁面修改 !。 this,warning,警告 , 。 else String m 基本信息將被錄入 !。 int ok this,m,確認(rèn) , 。 if ok String name 姓名 .getText 。 String discipling 專業(yè) .getText 。 String grade 年級 .getText 。 String borth 出生 .getText 。 String sex null。 if 男 .isSelected sex 男 .getText 。 else sex 女 .getText 。 學(xué)生 new Student 。 學(xué)生 .setNumber number 。 學(xué)生 .setName name 。 學(xué)生 .setDiscipling discipling 。 學(xué)生 .setGrade grade 。 學(xué)生 .setBorth borth 。 學(xué)生 .setSex sex 。 try outOne new FileOutputStream file 。 outTwo new ObjectOutputStream outOne 。 基本信息表 .put number,學(xué)生 。 基本信息表 。 。 。 學(xué)號 .setText null 。 姓名 .setText null 。 專業(yè) .setText null 。 年級 .setText null 。 出生 .setText null 。 catch Exception ee Sytln ee 。 else String warning 必須要輸入學(xué)號 !。 this,warning, 警告, 。 if 重置 學(xué)號 .setText null 。 姓名 .setText null 。 專業(yè) .setText null 。 年級 .setText null 。 出生 .setText null 。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1