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

正文內(nèi)容

java課程設(shè)計(jì)——學(xué)生信息管理系統(tǒng)-文庫吧資料

2025-04-13 06:04本頁面
  

【正文】 I類的對(duì)象,即打開刪除學(xué)生基本信息的窗口,當(dāng)點(diǎn)擊“增加成績(jī)信息”時(shí),通過注冊(cè)事件,創(chuàng)建ScoreAddUI類的對(duì)象,即打開添加成績(jī)信息的窗口,當(dāng)點(diǎn)擊“刪除成績(jī)信息”時(shí),通過注冊(cè)事件,創(chuàng)建ScoreDeleteUI類的對(duì)象,即打開刪除成績(jī)信息的窗口。其中“文件”菜單中有“退出”菜單項(xiàng),點(diǎn)擊時(shí)跳出對(duì)話框問是否真的退出,若點(diǎn)擊是,窗口關(guān)閉,若點(diǎn)擊否,回復(fù)原界面。 } } public static void main(String[] args) { new TeacherLoginUI()。 } else (null, 用戶名密碼錯(cuò)誤, 提示信息, )。 if (isSuccess) { new TeacherMainUI()。 TeacherDao oneTeacherDao = new TeacherDao()。 } class LoginActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { String st1 = ()。 (new WindowAdapter() { public void windowClosing(WindowEvent e) { (0)。 (400, 400)。 (p1)。//注冊(cè)事件 cp = getContentPane()。 (new LoginActionListener())。 (250, 230, 80, 30)。 (150, 230, 80, 30)。 (250, 190, 80, 30)。 (150, 190, 80, 40)。 (250, 150, 80, 30)。 (150, 150, 80, 40)。 JPanel p1 = new JPanel()。 bt1 = new JButton(登錄)。 t1 = new JTextField(12)。 public TeacherLoginUI(){ l1 = new JLabel(教師姓名)。 JButton bt1, bt2。 JTextField t1。import 。import .*。TeacherLoginUI類源代碼:package ui。輸入后,從兩個(gè)文本框中獲取用戶輸入的內(nèi)容,點(diǎn)擊“登陸”按鈕時(shí),調(diào)用TeacherDao類中的queryTeacher()方法驗(yàn)證是否存在該用戶。 repaint()。 } DefaultTableModel model = new DefaultTableModel(content, head)。 (())。 (())。 (())。 i++) { Vector row = new Vector()。 for (int i = 0。 (學(xué)分)。 (學(xué)科)。 (學(xué)號(hào))。 ArrayList lis = (aa)。 (true)。 (學(xué)生成績(jī)查詢)。 bottomPanel = new JPanel()。 bookScrollPane = new JScrollPane(table)。 (, topPanel)。 (new FlowLayout())。 selectionLabel = new JLabel(aa+同學(xué)本學(xué)期成績(jī)?nèi)缦?。 JPanel bottomPanel。 JTable table。 JPanel topPanel。public class StudentScoreUI extends JFrame{ String aa=。import 。import .*。import .*。import .*。調(diào)用ScoreDao類中的queryScore1(),將得到的ArrayList對(duì)象lis放入Vector對(duì)象中,形成表格。標(biāo)簽中從StudentLoginUI類中獲取學(xué)生登錄時(shí)使用的用戶名,顯示在標(biāo)簽中以表示以下是某某同學(xué)的成績(jī)信息。 } } public static void main(String[] args) { new StudentLoginUI()。 } else (null, 用戶名密碼錯(cuò)誤, 提示信息, )。 if (isSuccess) { new StudentScoreUI()。 StudentDao oneStudentDao = new StudentDao()。 } class LoginActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { st1 = ()。 (new WindowAdapter() { public void windowClosing(WindowEvent e) { (0)。 (400, 400)。 (p1)。//注冊(cè)事件 cp = getContentPane()。 (new LoginActionListener())。 (280, 230, 80, 30)。 (150, 230, 120, 30)。 (250, 190, 80, 30)。 (150, 190, 80, 40)。 (250, 150, 80, 30)。 (150, 150, 80, 40)。 JPanel p1 = new JPanel()。 bt1 = new JButton(成績(jī)查詢)。 t1 = new JTextField(12)。 public StudentLoginUI(){ l1 = new JLabel(學(xué)生姓名)。 public static String st1。 JButton bt1, bt2。 JTextField t1。import 。import .*。 StudentLoginUI類源代碼: package ui。輸入后,從兩個(gè)文本框中獲取用戶輸入的內(nèi)容,點(diǎn)擊“登陸”按鈕時(shí),調(diào)用StudentDao類中的studentLogin()方法驗(yàn)證是否存在該用戶。 } } public static void main(String[] args) { new LoginUI()。 } } class StudentLoginActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new StudentLoginUI()。 } class TeacherLoginActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new TeacherLoginUI()。 (new WindowAdapter() { public void windowClosing(WindowEvent e) { (0)。 (400, 400)。 (p1)。//注冊(cè)事件 cp = getContentPane()。 (new TeacherLoginActionListener())。 (220, 230, 80, 30)。 (120, 230, 80, 30)。 (150, 150, 120, 40)。 JPanel p1 = new JPanel()。 bt1 = new JButton(教師)。 Container cp。public class LoginUI extends JFrame { JLabel l1。import .*。 LoginUI類源代碼: package ui。 }}: (1) LoginUI類:此類為登陸界面,在這個(gè)界面上,設(shè)置有兩個(gè)按鈕,學(xué)生按鈕,教師按鈕。 = age。 = sname。 } public Student(int num, String sname, String sex, int age,String dept) { super()。 } public String getDept() { return dept。 } public int getAge() { return age。 } public String getSex() { return sex。 } public String getSname() { return sname。 public int getNum() { return num。 int age。 String sname。 十個(gè)成員方法,分別獲取和設(shè)置這五個(gè)變量,即為student表中五個(gè)屬性的記錄值,均為getXXX()setXXX()方法,還有一個(gè)構(gòu)造方法,用于調(diào)用其對(duì)象時(shí)對(duì)成員變量賦值Student類源代碼:package model。int age。String sname。 = credit。 = course。 = num。 } public void setCredit(int credit) { = credit。 } public void setScore(int score) { = score。 } public void setCourse(String course) { = course。 } public void setSname(String sname) { = sname。 } public void setNum(int num) { = num。 int credit。 String course。public class Score { int num。int credit。String course。 }}: (1)Score類:此類中有五個(gè)成員變量,int num。 } catch (SQLException e) { ()。 if (count == 1) return true。 (sql)。% + key + %39。 try { stm = ()。 } public boolean deleteScore(String key) { Connection con = ()。 } catch (SQLException e) { ()。// 返回修改的記錄數(shù) if (count == 1) return true。 (5, credit)。 (3, course)。 (1, num)。 PreparedStatement pst。 } return lis。 (score)。 ResultSet rs = (sql)。 。 String sql = select * from score where sname like 39。 Statement stm。 } public ArrayList queryScore1(String key) { ArrayList lis = new ArrayList()。 } } catch (SQLException e) { ()。 while (()) { Score score = new Score((1), (2), rs .getString(3), (4), (5))。 (sql)。% + key + %39。 try { stm = ()。 Connection con = ()。import 。import 。import 。import 。import 。若刪除成功,返回 true,否則返回falseScoreDao類源代碼: package dao。利用insert語句,將這些記錄寫入score表中。即此類的作用是每個(gè)學(xué)生登陸只能查看本人成績(jī)。queryScore()方法中,有一個(gè)參數(shù),傳給select語句中的sname(學(xué)生姓名),利用select語句,查詢學(xué)生成績(jī)信息表中的內(nèi)容。 return isfound。 } catch (SQLException e) { ()。 ResultSet rs=()。 (1, tname)。 PreparedStatement pst。 Connection con=()。import 。import 。import 。若存在此信息,返回true,否則返回falseTeacherDao類源
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1