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

正文內(nèi)容

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

2025-05-22 06:04上一頁面

下一頁面
  

【正文】 bottomPanel)。 Score oneScore1 = (Score) (i)。import .*。 (l1)。 (教師登錄界面)。“查詢”菜單中有“學(xué)生基本信息”和“學(xué)生成績信息”兩個(gè)菜單項(xiàng):當(dāng)點(diǎn)擊“學(xué)生基本信息”時(shí),通過注冊(cè)事件,創(chuàng)建InformationQueryUI類的對(duì)象,即打開查詢學(xué)生基本信息的窗口,當(dāng)點(diǎn)擊“學(xué)生成績信息”時(shí),通過注冊(cè)事件,創(chuàng)建ScoreQueryUI類的對(duì)象,即打開查詢學(xué)生成績信息的窗口。 JMenuItem exitMenuItem=new JMenuItem(退出)。 JMenuItem deleteScoreMenuItem=new JMenuItem(刪除成績信息)。 } } class AddScoreActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { new ScoreAddUI()。 JComboBox fieldComboBox。 (年齡)。 bookScrollPane = new JScrollPane(table)。 case 5: fieldSelected = dept。 (())。import .*。 public ScoreQueryUI(){ container = ()。 (, bottomPanel)。 i++) { Vector row = new Vector()。StudentAddUI類源代碼:package ui。 t4 = new JTextField(24)。 (170, 180, 200, 30)。 (200, 200, (), ())。 ()。public class StudentDeleteUI extends JFrame{ JLabel l1。 (bt2)。 } } } class CloseListener implements ActionListener{ public void actionPerformed(ActionEvent e) { dispose()。 l3 = new JLabel(學(xué)科)。 (100, 140, 80, 30)。 (140, 300, 80, 30)。 } })。 (100, 260, 80, 30)。 (100, 100, 80, 30)。 JTextField t1, t2, t3, t4, t5。 boolean issuccess = (sname)。 (t1)。import .*。 String dept = ()。 (280, 300, 80, 30)。 (170, 140, 200, 30)。 l5 = new JLabel(系別)。 }}執(zhí)行截圖如下:(8)StudentAddUI類:此類為添加學(xué)生基本信息界面類,在此界面中有五個(gè)標(biāo)簽,五個(gè)文本框,還有兩個(gè)按鈕“添加”“退出”。 (學(xué)分)。//給檢索按鈕注冊(cè)事件 table = new JTable()。 int selectedNum。再把查詢結(jié)構(gòu)通過Vector對(duì)象放入ArrayList類的對(duì)象lis中,從而使檢索結(jié)果顯示在表格中。 for (int i = 0。 case 3: fieldSelected = age。 (retrievalButton)。 fieldComboBox = new JComboBox()。import .*。 else if (result == 1) { } } } class QueryScoreActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { new ScoreQueryUI()。 JMenu changeMenu=new JMenu(修改)。 (menuBar)。 } } class ExitActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { (0)。//注冊(cè)事件 (new ExitActionListener())。 bt2 = new JButton(退出)。若存在創(chuàng)建TeacherMainUI類的對(duì)象,即打開教師主界面,若不存在,則提示密碼錯(cuò)誤。 VectorVector content = new Vector()。 table = new JTable()。import 。 boolean isSuccess = (st1, st2)。 (bt1)。 l2 = new JLabel(密碼)。 }}執(zhí)行截圖如下:(2)StudentLoginUI類:此類為學(xué)生登陸界面,在這個(gè)界面上有兩個(gè)文本框,分別輸入學(xué)生姓名和登錄密碼,還有兩個(gè)按鈕,登陸和退出。 (bt2)。import .*。 } public void setSname(String sname) { = sname。 = score。 int score。 。 try { pst = (insert into score values(?,?,?,?,?))。 } return lis。import 。 } (isfound)。import 。 } } catch (SQLException e) { ()。 int count = ()。 try { pst = (select * from studentlogin where sname=? and password=?)。若存在此信息,返回true,否則返回falseaddStudent()方法中,有五個(gè)參數(shù),分別傳給insert語句中的num(學(xué)號(hào)),sname(學(xué)生姓名),age(年齡),sex(性別)和dept(系別),利用insert語句向student學(xué)生基本信息表中插入學(xué)生記錄。 public static Connection getConnection() { try { String dbDriver=。若要查詢學(xué)生基本信息,點(diǎn)擊菜單項(xiàng)則進(jìn)入學(xué)生基本信息檢索界面,在此界面的檢索方式中選擇要檢索的數(shù)據(jù)屬性,在檢索內(nèi)容框中輸入檢索的具體信息,例如,檢索“姓名”字段時(shí),要鍵入某個(gè)學(xué)生姓名。當(dāng)查詢學(xué)生基本信息時(shí),從此表中獲取數(shù)據(jù)。一.引言 項(xiàng)目的名稱學(xué)生信息管理系統(tǒng) 項(xiàng)目背景和目標(biāo) 學(xué)生信息管理系主要對(duì)在校學(xué)生的個(gè)人基本信息以及成績信息進(jìn)行管理,對(duì)教師用戶提供查詢信息、增添信息、刪除信息等操作功能;對(duì)學(xué)生用戶提供成績查詢功能。截圖如下:在teacher(教師登陸)表中,有兩個(gè)屬性列,分別為:tname(教師姓名),password(登錄密碼)。輸入后,單擊“檢索”按鈕,則開始數(shù)據(jù)庫查詢。 (dbDriver)。若插入成功,返回true,否則返回falsedeleteStudent()方法中,有一個(gè)參數(shù),傳給delete語句中的sname(學(xué)生姓名),利用delete語句,把student表中相關(guān)學(xué)生信息刪除。 (1, sname)。// 返回修改的記錄數(shù) if (count == 1) return true。 } return lis。import 。 return isfound。import 。 } public ArrayList queryScore1(String key) { ArrayList lis = new ArrayList()。 (1, num)。 (sql)。 int credit。 = credit。 } public String getSex() { return sex。import .*。 (new TeacherLoginActionListener())。輸入后,從兩個(gè)文本框中獲取用戶輸入的內(nèi)容,點(diǎn)擊“登陸”按鈕時(shí),調(diào)用StudentDao類中的studentLogin()方法驗(yàn)證是否存在該用戶。 t1 = new JTextField(12)。 (280, 230, 80, 30)。 if (isSuccess) { new StudentScoreUI()。import 。 bookScrollPane = new JScrollPane(table)。 for (int i = 0。TeacherLoginUI類源代碼:package ui。 JPanel p1 = new JPanel()。//注冊(cè)事件 cp = getContentPane()。 } } public static void main(String[] args) { new TeacherLoginUI()。 (100, 100, 400, 300)。 JMenuItem addMenuItem=new JMenuItem(增加新生信息)。 } } class QueryActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new InformationQueryUI()。import 。 (請(qǐng)選擇...)。 (, topPanel)。 break。 i ()。ScoreQueryUI類源代碼:package ui。 JTable table。 bookScrollPane = new JScrollPane(table)。 VectorVector content = new Vector()。根據(jù)五個(gè)標(biāo)簽的提示,分別在五個(gè)文本框中輸入信息。 t1 = new JTextField(12)。 (t2)。 (bt2)。 boolean issuccess = (num, sname, sex,age,dept)。import .*。 (140, 300, 80, 30)。 if (issuccess) { (null, delete success, 提示信息, )。 JButton bt1, bt2。 (l1)。 (l5)。 } class AddListener implements ActionList。 (t5)。 (t1)。 l2 = new JLabel(姓名)。 } else { (null, delete failure, 提示信息, )。 (280, 300, 80, 30)。import 。 ()。 (new CloseListener())。 (l3)。 t3 = new JTextField(24)。若添加成功,提示成功,否則提示失敗。 i ()。 bottomPanel = new JPanel()。 JPanel bottomPanel。import .*。 Student oneStudent = (Student) (i)。 break。//給檢索按鈕注冊(cè)事件 table = new JTable()。 (姓名)。public class InformationQueryUI extends JFrame{ JLabel selectionLabel。 } } class DeleteActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new StudentDeleteUI()。 JMenuItem addScoreMenuItem=new JMenuItem(增加成績信息)。 } public void buildMainMenu(JMenuBar menuBar){ JMenu fileMenu=new JMenu(文件)。其中“文件”菜單中有“退出”菜單項(xiàng),點(diǎn)擊時(shí)跳出對(duì)話框問是否真的退出,若點(diǎn)擊是,窗口關(guān)閉,若點(diǎn)擊否,回復(fù)原界面。 (p1)。 (150, 150, 80, 40)。import .*。 i++) { Vector row = new Vector()。 bottomPanel = new JPanel()。public class StudentScoreUI extends JFrame{ String aa=。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1