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

正文內(nèi)容

計算機語言java課程設計-學籍管理系統(tǒng)-文庫吧

2024-11-25 06:05 本頁面


【正文】 入學生基本信息 )。 修改 =new JMenuItem(修改學生基本信息 )。 查詢與打印 =new JMenuItem(查詢與打印學生基本信息 )。 刪除 =new JMenuItem(刪除學生基本信息 )。 歡迎界面 =new JMenuItem(歡迎界面 )。 bar=new JMenuBar()。 fileMenu=new JMenu(菜單選項 )。 (錄入 )。 (修改 )。 (查詢與打印 )。 (刪除 )。 (歡迎界面 )。 (fileMenu)。 setJMenuBar(bar)。 label=new JLabel(學籍管理系統(tǒng) ,)。 (new ImageIcon())。 (new Font(隸書 ,36))。 ()。 ()。 基本信息 =new HashMapString,Student()。 錄入 .addActionListener(this)。 修改 .addActionListener(this)。 查詢與打印 .addActionListener(this)。 刪除 .addActionListener(this)。 歡迎界面 .addActionListener(this)。 card=new CardLayout()。 pCenter=new JPanel()。 (card)。 file=new File(基本信息 .txt)。 if(!()){ try{ FileOutputStream out=new FileOutputStream(file)。 ObjectOutputStream objectOut=new ObjectOutputStream(out)。 (基本信息 )。 ()。 ()。 } catch(IOException e){} } 基本信息錄入 =new InputStudent(file)。 基本信息修改 =new ModifySituation(file)。 基本信息查詢與打印 =new Inquest(file)。 基本信息刪除 =new Delete(file)。 5 (歡迎界面 ,label)。 (錄入界面 ,基本信息錄入 )。 (修改界面 ,基本信息修改 )。 (刪除界面 ,基本信息刪除 )。 add(pCenter,)。 validate()。 setVisible(true)。 setBounds(100,50,460,280)。 setDefaultCloseOperation()。 addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ int n=(null,確認退出嗎 ?,確認對話框 , )。 if(n==) (0)。 }})。 validate()。 } public void actionPerformed(ActionEvent e){ if(()==錄入 ){ 基本信息錄入 .clearMess()。 (pCenter,錄入界面 )。 } else if(()==修改 ){ 基本信息修改 .clearMess()。 (pCenter,修改界面 )。 } else if(()==查詢與打印 ){ 基本信息查詢與打印 .clearMess()。 基本信息查詢與打印 .setLocation(getBounds().x+getBounds().width,getBounds().y)。 基本信息查詢與打印 .setVisible(true)。 } else if(()==刪除 ) (pCenter,刪除界面 )。 else if(()==歡迎界面 ) (pCenter,歡迎界面 )。 } public static void main(String args[]){ new ManagerWindow()。 } } 運行效果如下圖所示: 6 . Student 類 創(chuàng)建的類對象 “學生”是 InputStudent 的重要成員之一,負責處理和學生有關的數(shù)據(jù)。標明 Student 類的主要成員變量和方法以及 InputStudent 類之間的組合 1)成員變量 number,name,discipling,grade,borth 和 sex 是 String 對象,他們的值分別表示學生的學號,姓名,專業(yè),年級,出生日期,性別。 imagePic 是 File 對象,用來存放學生的照片圖像的引用。 2)方法 setNumber( String) 和 getNumber()方法分別用來設置 number 和獲取 number。 setImagePic 和 getImagePic()方法分別用來設置 imagePic 和獲取它的值。 源代碼: public class Student implements Serializable{ String number,name,discipling,grade,borth,sex。 File imagePic。 public void setNumber(String number){ =number。 } public String getNumber(){ return number。 } public void setName(String name){ =name。 } public String getName(){ return name。 } public void setDiscipling(String discipling){ =discipling。 } 7 public String getDisciping(){ return discipling。 } public void setGrade(String grade){ =grade。 } public String getGrade(){ return grade。 } public void setBorth(String borth){ =borth。 } public String getBorth(){ return borth。 } public void setSex(String sex){ =sex。 } public String getSex(){ return sex。 } public void setImagePic(File image){ imagePic=image。 } public File getImagePic(){ return imagePic。 } } 運行效果如下圖所示: 8 InputStudent 類 InputStudent類是 JPanel容器的子類,并實現(xiàn)了 ActionListener接口,所創(chuàng)建的對象,基本信息錄入是 ManagerWiodow 類中的最重要成員之一,負責提供錄入學生信息的界面。表明 Inputstudent 類的主要成員變量,方法和 ManagerWindow類組合關系
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1