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

正文內(nèi)容

java程序設(shè)計(jì)學(xué)生信息管理系統(tǒng)(編輯修改稿)

2025-02-25 20:32 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 oid setSpecialty(String specialty){ =specialty。} public String getSpecialty(){ return specialty。} public void setGrade(String grade){ =grade。} public String getGrade(){ return grade。} public void setBorth(String borth){ =borth。} public String getBorth(){ return borth。} } ( 3)錄入學(xué)生信息部分: public class StudentManager extends JFrame{ JLabel lb=new JLabel(錄入請(qǐng)先輸入記錄,查詢、刪除請(qǐng)先輸入學(xué)號(hào),修改是對(duì)查 詢 + 內(nèi)容改后的保存! )。 JTextField 學(xué)號(hào) ,姓名 ,專業(yè) ,年級(jí) ,出生 。 JRadioButton 男 ,女 。 ButtonGroup group=null。 …………………… ..(論文) 13 JButton 錄入 ,查詢 ,刪除 ,修改 ,顯示 。 JPanel p1,p2,p3,p4,p5,p6,pv,ph。 Student 學(xué)生 =null。 Hashtable 學(xué)生散列表 =null。 File file=null。 FileInputStream inOne=null。 ObjectInputStream inTwo=null。 FileOutputStream outOne=null。 ObjectOutputStream outTwo=null。 public StudentManager(){ super(學(xué)生基本信息管理系統(tǒng) )。 學(xué)號(hào) =new JTextField(10)。 姓名 =new JTextField(10)。 專業(yè) =new JTextField(10)。 年級(jí) =new JTextField(10)。 出生 =new JTextField(10)。 group=new ButtonGroup()。 男 =new JRadioButton(男 ,true)。 女 =new JRadioButton(女 ,false)。 (男 )。 (女 )。 錄入 =new JButton(錄入 )。 查詢 =new JButton(查詢 )。 刪除 =new JButton(刪除 )。 修改 =new JButton(修改 )。 顯示 =new JButton(顯示 )。 …………………… ..(論文) 14 錄入 .addActionListener(new InputAct())。 查詢 .addActionListener(new InquestAct())。 修改 .addActionListener(new ModifyAct())。 刪除 .addActionListener(new DeleteAct())。 顯示 .addActionListener(new ShowAct())。 修改 .setEnabled(false)。 p1=new JPanel()。 (new JLabel(學(xué)號(hào) :,))。 (學(xué)號(hào) )。 p2=new JPanel()。 (new JLabel(姓名 :,))。 (姓名 )。 p3=new JPanel()。 (new JLabel(性別 :,))。 (男 )。 (女 )。 p4=new JPanel()。 (new JLabel(專業(yè) :,))。 (專業(yè) )。 p5=new JPanel()。 (new JLabel(年級(jí) :,))。 (年級(jí) )。 p6=new JPanel()。 (new JLabel(出生 :,))。 (出生 )。 …………………… ..(論文) 15 pv=new JPanel()。 (new GridLayout(6,1))。 (p1)。 (p2)。 (p3)。 (p4)。 (p5)。 (p6)。 ph=new JPanel()。 (錄入 )。 (查詢 )。 (修改 )。 (刪除 )。 (顯示 )。 file=new File(學(xué)生信息 .txt)。 學(xué)生散列表 =new Hashtable()。 if(!()){ try{ FileOutputStream out=new FileOutputStream(file)。 ObjectOutputStream objectOut=new ObjectOutputStream(out)。 (學(xué)生散列表 )。 ()。 ()。 } catch(IOException e){} } Container con=getContentPane()。 (new BorderLayout())。 (lb, )。 (pv, )。 (ph, )。 setDefaultCloseOperation(EXIT_ON_CLOSE)。 setBounds(100,100,600,300)。 setVisible(true)。 } 顯示對(duì)話框的設(shè)計(jì): …………………… ..(論文) 16 class StudentShow extends JDialog{ Hashtable 學(xué)生散列表 = null。 JTextArea 顯示 =null。 FileInputStream inOne=null。 ObjectInputStream inTwo=null。 File file=null。 public StudentShow(File file){ super(new JFrame(),顯示對(duì)話框 )。 =file。 顯示 =new JTextArea(16,30)。 try{ inOne=new FileInputStream(file)。 inTwo=new ObjectInputStream(inOne)。 學(xué)生散列表 =(Hashtable)()。 ()。 ()。 } catch(Exception ee){} if(學(xué)生散列表 .isEmpty())顯示 .append(目前還沒有學(xué)生的信息記錄! \n)。 else{ 顯示 .setText(學(xué)號(hào) 姓名 性別 專業(yè) 年級(jí) 出生 \n)。 for(Enumeration enm=學(xué)生散列 表 .elements()。()。){ Student stu=(Student)()。 String sex=。 if(().equals(男 ))sex=男 。 else sex=女 。 String str=()+,+()+,+sex+, +()+,+()+,+()+\n。 顯示 .append(str)。 …………………… ..(論文) 17 } } JScrollPane scroll=new JScrollPane(顯示 )。 Container con=getContentPane()。 (Center,scroll)。 ()。 setVisible(true)。 setBounds(200,200,400,300)。 addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){setVisible(false)。} } )。 } } } 主界面 …………………… ..(論文) 18 信息錄入界面: 未輸入信息: 正確錄入信息: 重復(fù)錄入信息: 信息查詢: …………………… ..(論文) 19 源程序 : import .*。 import .*。 import .*。 import .*。 import .*。 class Student implements { String number,name,specialty,grade,borth,sex。 public Student(){}。 public void setNumber(String number){ =number。} public String getNumber(){ return number。} public void setName(String name){ =name。} public String getName(){ return name。} public void setSex(String sex){ =sex。} public String getSex(){ return sex。} public void setSpecialty(String specialty){ =specialty。}
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1