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

正文內(nèi)容

java課程設(shè)計(jì)——學(xué)生信息管理系統(tǒng)(參考版)

2025-04-10 06:04本頁(yè)面
  

【正文】 } class AddListener implements ActionList。 (new WindowAdapter() {// 匿名類開(kāi)始 public void windowClosing(WindowEvent e) // 把退出窗口的語(yǔ)句寫在本方法中 { dispose()。 (400, 400)。 (p1)。 (new CloseListener())。 (bt2)。 (bt1)。 (t5)。 (l5)。 (t4)。 (l4)。 (t3)。 (l3)。 (t2)。 (l2)。 (t1)。 (l1)。 (null)。 bt2 = new JButton(退出)。 t5 = new JTextField(20)。 t3 = new JTextField(20)。 t1 = new JTextField(20)。 l4 = new JLabel(成績(jī))。 l2 = new JLabel(姓名)。 JButton bt1, bt2。public class ScoreAddUI extends JFrame{ JLabel l1, l2, l3, l4, l5。import .*。import .*。若添加成功,提示成功,否則提示失敗。根據(jù)五個(gè)標(biāo)簽的提示,分別在五個(gè)文本框中輸入信息。 } } public static void main(String[] args) { new StudentDeleteUI ()。 } else { (null, delete failure, 提示信息, )。 if (issuccess) { (null, delete success, 提示信息, )。 String sname = ()。 } // 窗口關(guān)閉 })。 (true)。 (刪除畢業(yè)生界面)。 (200, 200, (), ())。 (new DeleteListener())。 (280, 300, 80, 30)。 (140, 300, 80, 30)。 (150, 200, 100, 30)。 (100, 100, 250, 50)。 JPanel p1 = new JPanel()。 bt1 = new JButton(刪除)。 public StudentDeleteUI () { l1 = new JLabel(請(qǐng)輸入要?jiǎng)h除基本信息的學(xué)生姓名:)。 JTextField t1。import 。import .*。StudentDeleteUI類源代碼:package ui。當(dāng)單擊“刪除”按鈕時(shí),通過(guò)注冊(cè)事件,在內(nèi)部類的actionPerformed()方法中,獲取這個(gè)文本框中的信息,作為實(shí)參,通過(guò)StudentDao類的deleteStudent()方法,就該省成績(jī)信息刪除。 }}執(zhí)行截圖如下:(9)StudentDeleteUI類:此類為刪除學(xué)生基本信息界面類,在此界面中有一個(gè)標(biāo)簽,一個(gè)文本框,還有兩個(gè)按鈕“刪除”“退出”。 } } } class CloseListener implements ActionListener{ public void actionPerformed(ActionEvent e) { dispose()。 ()。 ()。 ()。 boolean issuccess = (num, sname, sex,age,dept)。 int age = (())。 String sname = ()。 } class AddListener implements ActionListener{ public void actionPerformed(ActionEvent arg0) { StudentDao oneStudentDao = new StudentDao()。 (new WindowAdapter() {// 匿名類開(kāi)始 public void windowClosing(WindowEvent e) // 把退出窗口的語(yǔ)句寫在本方法中 { dispose()。 (400, 400)。 (p1)。 (new CloseListener())。 (bt2)。 (bt1)。 (t5)。 (l5)。 (t4)。 (l4)。 (t3)。 (l3)。 (t2)。 (l2)。 (t1)。 (l1)。 (null)。 bt2 = new JButton(退出)。 t5 = new JTextField(6)。 t3 = new JTextField(24)。 t1 = new JTextField(12)。 l4 = new JLabel(年齡)。 l2 = new JLabel(姓名)。 JButton bt1, bt2。public class StudentAddUI extends JFrame{ JLabel l1, l2, l3, l4, l5。import .*。import .*。若添加成功,提示成功,否則提示失敗。根據(jù)五個(gè)標(biāo)簽的提示,分別在五個(gè)文本框中輸入信息。 } } public static void main(String[] args) { new ScoreQueryUI()。 (model)。 (row)。 (())。 (())。 Score oneScore1 = (Score) (i)。 i ()。 VectorVector content = new Vector()。 (成績(jī))。 (姓名)。 VectorString head = new Vector()。 ScoreDao oneScore=new ScoreDao()。 (true)。 (學(xué)生信息檢索查詢系統(tǒng))。 bottomPanel = new JPanel()。 bookScrollPane = new JScrollPane(table)。 (new RetrievalActionListener())。 (retrievalButton)。 (selectionLabel)。 (new FlowLayout())。 retrievalButton = new JButton(查詢)。 selectionLabel = new JLabel(學(xué)生姓名)。 JPanel bottomPanel。 JTable table。 String fieldSelected。 JTextField keywordText。 JPanel topPanel。import 。import 。import .*。import .*。ScoreQueryUI類源代碼:package ui。在文本框中輸入要查詢成績(jī)的學(xué)生姓名,單擊“查詢”按鈕時(shí),通過(guò)注冊(cè)事件,在內(nèi)部類的方法里,獲取從文本框中獲取的學(xué)生姓名信息,并把此信息作為實(shí)參傳給ScoreDao類的queryScore()方法,得到查詢結(jié)構(gòu)。 } } public static void main(String[] args) { new InformationQueryUI()。 (model)。 (row)。 (())。 (())。 Student oneStudent = (Student) (i)。 i ()。 VectorVector content = new Vector()。 (性別)。 (姓名)。 VectorString head = new Vector()。 StudentDao oneStudentDao = new StudentDao()。 break。 break。 break。 break。 break。 } class SelectedListener implements ItemListener{ public void itemStateChanged(ItemEvent event) { if (() == ) { selectedNum = ()。 (600, 450)。 (, bottomPanel)。 (, bookScrollPane)。//給檢索按鈕注冊(cè)事件 table = new JTable()。 (, topPanel)。 (keywordText)。 (selectionLabel)。 (new FlowLayout())。 retrievalButton = new JButton(檢索)。 (new SelectedListener())。 (性別)。 (姓名)。 (請(qǐng)選擇...)。 selectionLabel = new JLabel(檢索方式)。 JPanel bottomPanel。 JTable table。 String fieldSelected。 JTextField keywordText。 JPanel topPanel。public class InformationQueryUI extends JFrame{ JLabel selectionLabel。import 。import .*。import .*。import .*。在文本框中輸入要檢索的屬性內(nèi)容,單擊“檢索”按鈕時(shí),通過(guò)注冊(cè)事件,在內(nèi)部類的方法中把剛才獲取的屬性參數(shù)和內(nèi)容參數(shù)傳給StudentDao類的queryStudent()方法,從而獲取檢索內(nèi)容,再把檢索得到的內(nèi)容通過(guò)Vector對(duì)象放入ArrayList類的對(duì)象lis中,從而使檢索結(jié)果顯示在表格中。 }}執(zhí)行截圖如下:(6)InformationQueryUI類:此類為學(xué)生基本信息查詢界面類,在此界面上有一個(gè)標(biāo)簽,一個(gè)下拉列表框,一個(gè)文本框和一個(gè)按鈕。 } } class DeleteScoreActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { new ScoreDeleteUI()。 } } class DeleteActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new StudentDeleteUI()。 } } class QueryActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new InformationQueryUI()。 if (result == 0) (0)。 (changeMenu)。 (addScoreMenuItem)。//注冊(cè)事件 (addMenuItem)。//注冊(cè)事件 (new AddScoreActionListener())。 (new AddActionListener())。 JMenuItem addScoreMenuItem=new JMenuItem(增加成績(jī)信息)。 JMenuItem addMenuItem=new JMenuItem(增加新生信息)。 (queryMenu)。//注冊(cè)事件 (queryMenuItem)。 (new QueryActionListener())。 JMenuItem queryMenuItem=new JMenuItem(學(xué)生基本信息)。 (fileMenu)。 (new ExitActionListener())。 } public void buildMainMenu(JMenuBar menuBar){ JMenu fileMenu=new JMenu(文件)。 (100, 100, 400, 300)。 buildMainMenu(menuBar)。 (new BorderLayout())。 TeacherMainUI(){ ctp = ()。import .*。import .*。修改菜單中有“增加新生信息”“刪除畢業(yè)生信息”“增加成績(jī)信息”和“刪除成績(jī)信息”四個(gè)菜單項(xiàng),當(dāng)點(diǎn)擊“增加新生信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建StudentAddUI類的對(duì)象,即打開(kāi)添加學(xué)生基本信息的窗口,當(dāng)點(diǎn)擊“刪除畢業(yè)生信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建StudentDeleteU
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1