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

正文內(nèi)容

java課程設計-學籍管理系統(tǒng)(編輯修改稿)

2024-09-03 09:36 本頁面
 

【文章內(nèi)容簡介】 String birth。 String grade。 public Student(){} public void setname(String name){ =name。 } public String getname(){ return 。 } public void setnumber(String number){ =number。 } public String getnumber(){ return 。 } public void setdepartment(String department){ =department。 } public String getdepartment(){ return 。 } public void setsex(String sex){ =sex。 } public String getsex(){ return 。 } public void setbirth(String birth){ =birth。 } public String getbirth(){ return 。 } public void setgrade(String grade){ =grade。 } public String getgrade(){ return 。 }}輸入功能package student。import .*。import .*。import .*。import .*。import 。public class input extends JFrame implements ActionListener { JTextField name, number, birth, grade, department。// 學生的信息項。\ JRadioButton male, female。// 單選按鈕 Student Stu。 ButtonGroup group。// 形成單選效果 JButton confirm, reset。 File fi1。 FileInputStream fin。// 文件輸入流 FileOutputStream fou。// 文件輸出流寫入數(shù)據(jù) ObjectInputStream oin。// 對象輸入流 ObjectOutputStream oou。// 對象輸出流 Hashtable ha1。// 哈希圖數(shù)據(jù)結(jié)構(gòu)來儲存數(shù)據(jù) public input(File file) { super(輸入界面)。 = file。 name = new JTextField(10)。 number = new JTextField(10)。 birth = new JTextField(10)。 grade = new JTextField(10)。 department = new JTextField(10)。 group = new ButtonGroup()。 male = new JRadioButton(男, true)。 female = new JRadioButton(女, false)。 (male)。 (female)。 confirm = new JButton(錄入)。 reset = new JButton(重置)。 ha1 = new Hashtable()。 (this)。 (this)。 Box box1 = ()。 (new JLabel(學號:, ))。 (number)。 Box box2 = ()。 (new JLabel(姓名:, ))。 (name)。 Box box3 = ()。 (new JLabel(性別:, ))。 (male)。 (female)。 Box box4 = ()。 (new JLabel(專業(yè):, ))。 (department)。 Box box5 = ()。 (new JLabel(年級:, ))。 (grade)。 Box box6 = ()。 (new JLabel(出生:, ))。 (birth)。 Box boxc = ()。// 垂直的Box容器 (box1)。 (box2)。 (box3)。 (box4)。 (box5)。 (box6)。 (())。// 盡可能把上面的box分開。 JPanel JP1 = new JPanel()。 (boxc)。 JPanel JP2 = new JPanel()。 (confirm)。 (reset)。 setLayout(new BorderLayout())。 add(JP1, )。 add(JP2, )。 validate()。// 確保布局的有效性。 setBounds(300, 500, 200, 300)。 setSize(500, 300)。 // setVisible(false)。 } public void actionPerformed(ActionEvent e) { if (() == confirm) { String nu = 。 nu = ()。 if (() 0) { try { fin = new FileInputStream(fi1)。 oin = new ObjectInputStream(fin)。 ha1 = (Hashtable) ()。 ()。 ()。 }// try catch (Exception e1) { } if ((nu)) { String warning = 該生信息已存在。 (this, warning, 重復了, )。 } else { String m = 基本信息將被錄入!。 int ok = (this, m, 確認, , )。 if (ok == ) { String na = ()。 String bir = ()。 String dep = ()。 String gra = ()。 String se。 if (()) { se = ()。 } else { se = ()。 } Stu = new Student()。 (nu)。 (na)。 (bir)。 (dep)。 (gra)。 (se)。 try { fou = new FileOutputStream(fi1)。 oou = new ObjectOutputStream(fou)。 (nu, Stu)。 (ha1)。 ()。 ()。 (null)。 (null)。 (null)。 (null)。 (null)。 } catch (Exception ee) { (ee)。 } } } }// if else { String warning = 請確認已經(jīng)輸入學號。 (this, warning, 出錯了, )。 } }// if if (() == reset) { (null)。 (null)。 (null)。 (null)。 (null)。 } }}修改功能package student。import .*。import .*。import .*。import 。import .*。import .*。public class change extends JFrame implements ActionListener { Student Stu, Stu1。 Container con。 JTextField name, number, birth, grade, department。// 學生的信息項。 JRadioButton male, female。// 單選按鈕 ButtonGroup group。// 形成單選效果 JButton find, confirm, reset。 File fi1。 FileInputStream fin。// 文件輸入流 FileOutputStream fou。// 文件輸出流寫入數(shù)據(jù) ObjectInputStream oin。// 對象輸入流 ObjectOutputStream oou。// 對象輸出流 Hashtable ha1。// 哈希表數(shù)據(jù)結(jié)構(gòu)來儲存數(shù)據(jù) public change(File file) { super( 修改界面)。 = file。 con = con = getContentPane()。 Hashtable ha1 = new Hashtable()。 name = new JTextField(10)。 number = new JTextField(10)。 birth = new JTextField(10)。 grade = new JTextField(10)。 department = new JTextField(10)。 group = new ButtonGroup()。 male = new JRadioButton(男, true)。 female = new JRadioBu
點擊復制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1