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

正文內(nèi)容

計算機語言java課程設(shè)計-學(xué)籍管理系統(tǒng)-預(yù)覽頁

2025-01-16 06:05 上一頁面

下一頁面
 

【正文】 )。 歡迎界面 =new JMenuItem(歡迎界面 )。 (修改 )。 (fileMenu)。 (new Font(隸書 ,36))。 錄入 .addActionListener(this)。 歡迎界面 .addActionListener(this)。 file=new File(基本信息 .txt)。 ()。 基本信息查詢與打印 =new Inquest(file)。 (修改界面 ,基本信息修改 )。 setVisible(true)。 if(n==) (0)。 (pCenter,錄入界面 )。 基本信息查詢與打印 .setLocation(getBounds().x+getBounds().width,getBounds().y)。 } public static void main(String args[]){ new ManagerWindow()。 2)方法 setNumber( String) 和 getNumber()方法分別用來設(shè)置 number 和獲取 number。 public void setNumber(String number){ =number。 } public void setDiscipling(String discipling){ =discipling。 } public void setBorth(String borth){ =borth。 } public void setImagePic(File image){ imagePic=image。 pic 是 StudentPicture 創(chuàng)建的對象,負責(zé) 繪制學(xué)生的照片。 運行效果如下圖所示: 源代碼: public class InputStudent extends JPanel implements ActionListener{ Student 學(xué)生 =null。 JButton 選擇照片 。 JButton 錄入 ,重置 。 ObjectOutputStream outTwo=null。 學(xué)號 =new JTextField(5)。 BufferedReader inTwo= new BufferedReader(inOne)。 ()。 } 年級 =new JTextField(5)。 男 =new JRadioButton(男 ,true)。 錄入 =new JButton(錄入 )。 重置 .addActionListener(this)。 Box box2=()。 (new JLabel(性別 :,))。 (new JLabel(專業(yè) :,))。 (年級 )。 Box boxH=()。 (box4)。 JPanel picPanel=new JPanel()。 JPanel putButton=new JPanel()。 (boxH)。 JSplitPane splitV= new JSplitPane(,picPanel,pic)。 validate()。 inTwo=new ObjectInputStream(inOne)。 } catch(Exception ee){} if(基本信息表 .containsKey(number)){ String warning=該生基本信息已存在 ,請到修改頁面修改 !。 if(ok==){ String name=姓名 .getText()。 String sex=null。 學(xué)生 .setNumber(number)。 學(xué)生 .setBorth(borth)。 outTwo=new ObjectOutputStream(outOne)。 ()。 } } else if(()==選擇照片 ){ JFileChooser chooser=new JFileChooser()。 int state=(null)。state==){ 選擇照片 .setText(())。 } } else if(()==重置 ){ clearMess()。 出生 .setText(null)。 ()。 錄入,重置和選擇照片是 JButton 創(chuàng)建的對象,這些按鈕都將當(dāng)前容器注冊為自己的 ActionEvent 事件監(jiān)視器 . actionPerformed(ActionEvent)方法是 InputStudent類實現(xiàn) ActionListener接口中的方法。 運行效果如下圖所示: Delete 類 Delete 類是 包中 JPanel 容器的子類,并實現(xiàn)了 ActionListen 接口,所創(chuàng)建的對象:基本信息刪除是 ManagerWindow 類中最重要的成員之一,負責(zé)提供刪除學(xué)生信息的界面。 systemFile 和 imagePic 是 File 聲明的對象,其中 systemFile 存放的件引用ManagerWindow 類中的 file 相同。 JTextField 學(xué)號 ,姓名 ,專業(yè) ,年級 ,出生 。 FileInputStream inOne=null。 File systemFile=null。 學(xué)號 .addActionListener(this)。 專業(yè) =new JTextField(10)。 出生 =new JTextField(10)。 group=new ButtonGroup()。 (new JLabel(輸入要刪除的學(xué)號 :,))。 (new JLabel(姓名 :,))。 (男 )。 (專業(yè) )。 Box box6=()。 (box1)。 (box5)。 (boxH)。 } public void actionPerformed(ActionEvent e){ if(()==刪除 ||()==學(xué)號 ){ String number=。 基本信息表 =(HashMap)()。 姓名 .setText(())。 if(().equals(男 )) 男 .setSelected(true)。 if(ok==){ 基本信息表 .remove(number)。 ()。 專業(yè) .setText(null)。 姓名 .setText(null)。 } } else{ String warning=該學(xué)號不存在 !。 (this,warning,警告 , )。 } 4 課程設(shè)計心得 經(jīng)過差不多一個星期的努力,基本上完成我的 Java 課程設(shè)計 — 簡單的 學(xué) 籍 管理系統(tǒng)的 程序,也基本上實現(xiàn)了我在需求分析時所預(yù)期的功能。在這過程中也無形中鍛煉了我的思維分析、遇到問題及想方設(shè)法通過各種途徑解決問題的
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1