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

正文內(nèi)容

java課程設(shè)計(jì)——學(xué)生信息管理系統(tǒng)-免費(fèi)閱讀

  

【正文】 (true)。 (280, 300, 80, 30)。 (170, 220, 200, 30)。 (170, 140, 200, 30)。 JPanel p1 = new JPanel()。 l5 = new JLabel(學(xué)分)。import 。 }}執(zhí)行截圖如下:(10)ScoreAddUI類:此類為添加學(xué)生成績(jī)信息界面類,在此界面中有五個(gè)標(biāo)簽,五個(gè)文本框,還有兩個(gè)按鈕“添加”“退出”。// 匿名類結(jié)束 } class DeleteListener implements ActionListener{ public void actionPerformed(ActionEvent arg0){ StudentDao oneStudentDao = new StudentDao()。 (new CloseListener())。 (l1)。 JButton bt1, bt2。若刪除成功,提示成功,否則提示失敗。 ()。 String sex = ()。 (增添新生錄入界面)。 (140, 300, 80, 30)。 (100, 220, 80, 30)。 (100, 140, 80, 30)。 bt1 = new JButton(添加)。 l3 = new JLabel(性別)。import .*。 repaint()。 (())。 (學(xué)科)。 (600, 450)。 (, topPanel)。 keywordText = new JTextField(, 20)。 Container container。import .*。 }}執(zhí)行截圖如下:(7)ScoreQueryUI類:此類為學(xué)生成績(jī)查詢界面類,在此界面有一個(gè)標(biāo)簽,一個(gè)文本框,一個(gè)按鈕。 (())。 (系別)。 } String key = ()。 case 2: fieldSelected = sname。 bottomPanel = new JPanel()。 (fieldComboBox)。 (系別)。 public InformationQueryUI(){ container = ()。 JButton retrievalButton。import .*。 } } public static void main(String[] args) { new TeacherMainUI()。 } class ExitActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { int result = (null, 真的要推出嗎?, 提示信息, , , null)。//注冊(cè)事件 (new DeleteActionListener())。 (queryScoreMenuItem)。//注冊(cè)事件 (exitMenuItem)。 JMenuBar menuBar = new JMenuBar()。TeacherMainUI類源代碼:package ui。 dispose()。 (true)。 (bt2)。 (t1)。 t2 = new JPasswordField(12)。public class TeacherLoginUI extends JFrame { JLabel l1, l2。 }}執(zhí)行截圖如下:(4)TeacherLoginUI類:此類為教師登陸界面,在這個(gè)界面上有兩個(gè)文本框,分別輸入教師姓名和登錄密碼,還有兩個(gè)按鈕,登陸和退出。 (())。 (成績(jī))。 (600, 450)。 (selectionLabel)。 Container container。import .*。 }}執(zhí)行截圖如下:(3)StudentScoreUI類:此類為學(xué)生成績(jī)界面,此類中有一個(gè)標(biāo)簽和一個(gè)表格。 st2 = ()。 (200, 200, (), ())。 (t2)。 (null)。 public String st2。import .*。 dispose()。 (用戶登錄界面)。 (bt1)。 public LoginUI() { l1 = new JLabel(請(qǐng)選擇用戶類型)。給這兩個(gè)按鈕注冊(cè)事件addActionListener,分別在內(nèi)部類TeacherLoginActionListene和StudentLoginActionListener中的默認(rèn)方法actionPerformed()中創(chuàng)建TeacherLoginUI類和StudentLoginUI類的對(duì)象,即打開教師登陸界面和學(xué)生登錄界面,并將原登陸界面關(guān)閉。 } public void setDept(String dept) { = dept。 } public void setNum(int num) { = num。String dept。 = sname。 } public String getCourse() { return course。 String sname。 } return false。 String sql = delete from score where sname like 39。 int count = ()。 } public boolean addScore(int num, String sname, String course, int score, int credit) { Connection con = ()。% + + %39。 (score)。 Statement stm。import 。若查詢成功,則返回一個(gè)ArrayList類的對(duì)象lis(表格),否則,異常處理addScore()方法中,有五個(gè)參數(shù),分別傳給insert語(yǔ)句中的num(學(xué)號(hào)),sname(學(xué)生姓名),course(課程名稱),score(成績(jī)),credit(學(xué)分)。 if(()) isfound=true。public class TeacherDao { public boolean queryTeacher(String tname,String password) { DBConnection db=new DBConnection()。 }}(2)TeacherDao類:此類中有一個(gè)方法:queryTeacher,作用是控制教師登陸 queryTeacher()方法中,有兩個(gè)參數(shù),分別傳給select語(yǔ)句中的tname(教師姓名)和password(登陸密碼),利用select語(yǔ)句在teacher表中檢索教師登陸信息。% + key + %39。 while (()) { Student student = new Student((1), (2), rs .getString(3), (4), (5))。 Connection con = ()。 (4, age)。 } (isfound)。 boolean isfound=false。import 。 } }}:(1)StudentDao類:此類中有四個(gè)方法,studentLogin,addStudent,deleteStudent, queryStuden,作用分別是控制學(xué)生登陸,增加學(xué)生基本信息,查詢學(xué)生基本信息,刪除學(xué)生基本信息。 (Connection Suceess)。import 。如果教師要進(jìn)行修改操作,則在教師主界面上選擇修改菜單項(xiàng),在此項(xiàng)中,選擇要修改的具體內(nèi)容,總共有四項(xiàng)修改操作:增加新生信息,刪除畢業(yè)生信息(這兩個(gè)是對(duì)學(xué)生基本信息表的操作),增加成績(jī)信息,刪除成績(jī)信息(這兩個(gè)是對(duì)學(xué)生成績(jī)信息表的操作)。在教師主界面可以選擇進(jìn)行查詢操作還是修改操作。當(dāng)學(xué)生用戶登陸此系統(tǒng)時(shí),從該表獲取數(shù)據(jù)。截圖如下:在student(學(xué)生基本信息)表中,有五個(gè)屬性列,分別為:num(學(xué)號(hào)),sname(學(xué)生姓名姓名),sex(性別),age(年齡),dept(系別)。對(duì)于教師,需要查詢?nèi)繉W(xué)生的基本信息和成績(jī)信息,并且可以對(duì)其進(jìn)行修改。根據(jù)目前所開設(shè)的課程,學(xué)生已經(jīng)具備這樣的知識(shí),有能力綜合java編程知識(shí)和數(shù)據(jù)庫(kù)應(yīng)用知識(shí)做出一個(gè)這樣的學(xué)生信息管理系統(tǒng)二、 需求分析2.1系統(tǒng)概述 此系統(tǒng)提供給教師用戶和學(xué)生用戶。在查找學(xué)生成績(jī)信息時(shí),只能依據(jù)學(xué)生姓名和學(xué)號(hào)進(jìn)行查找。當(dāng)教師用戶登陸此系統(tǒng)時(shí),從該表獲取數(shù)據(jù)。如果選擇學(xué)生用戶,則進(jìn)入學(xué)生登錄界面,在這個(gè)界面上輸入學(xué)生姓名和用戶密碼。若要查詢學(xué)生成績(jī)信息,則點(diǎn)擊學(xué)生成績(jī)查詢菜單項(xiàng),進(jìn)入成績(jī)查詢界面。若連接成功,提示:connection success,若連接失敗,提示:connection failureDBconnection類源代碼:package connection。 } catch (ClassNotFoundException e) { (Driver not found)。 (database close success)。若存在此信息,則返回一個(gè)ArrayList類的對(duì)象lis(表格),否則,異常處理StudentDao類源代碼:package dao。import 。 ResultSet rs=()。 (1, num)。 } catch (SQLException e) { ()。 。 Statement stm。 else return false。import 。 (1, tname)。queryScore()方法中,有一個(gè)參數(shù),傳給select語(yǔ)句中的sname(學(xué)生姓名),利用select語(yǔ)句,查詢學(xué)生成績(jī)信息表中的內(nèi)容。import 。import 。 (sql)。 Statement stm。 (score)。 (3, course)。 } public boolean deleteScore(String key) { Connection con = ()。 if (count == 1) return true。int credit。 } public void setNum(int num) { = num。 } public void setCredit(int credit) { = credit。String sname。 int age。 } public int getAge() { return age。 = age。public class LoginUI extends JFrame { JLabel l1。 (150, 150, 120, 40)。//注冊(cè)事件 cp = getContentPane()。 } class TeacherLoginActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new TeacherLoginUI()。 StudentLoginUI類源代碼: package ui。 JButton bt1, bt2。 bt1 = new JButton(成績(jī)查詢)。 (150, 190, 80, 40)。 (new LoginActionListener())。 (new WindowAdapter() { public void windowClosing(WindowEvent e) { (0)。 } else (null, 用戶名密碼錯(cuò)誤, 提示信息, )。import .*。public class StudentScoreUI extends JFrame{ String aa=。 selectionLabel = new JLabel(aa+同學(xué)本學(xué)期成績(jī)?nèi)缦?。 bottomPanel = new JPanel()。 (學(xué)號(hào))。 i++) { Vector row = new Vector()。 } DefaultTableModel model = new DefaultTableModel(content, head)。import .*。 public TeacherLoginUI(){ l1 = new JLabel(教師姓名)。 (150, 150, 80, 40)。 (150, 230, 80, 30)。 (p1)。 TeacherDao oneTeacherDao = new TeacherDao()。其中“文件”菜單中有“退出”
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1