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

正文內(nèi)容

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

  

【正文】 X()方法,還有一個(gè)構(gòu)造方法,用于調(diào)用其對(duì)象時(shí)對(duì)成員變量賦值Score類源代碼:package model。 else return false。 Statement stm。 (4, score)。 } } catch (SQLException e) { ()。 try { stm = ()。 ResultSet rs = (sql)。public class ScoreDao { public ArrayList queryScore(String key) { ArrayList lis = new ArrayList()。import 。若查詢成功,則返回一個(gè)ArrayList類的對(duì)象lis(表格),否則,異常處理queryScore1()方法中,有一個(gè)參數(shù),傳給傳給select語(yǔ)句中的sname(學(xué)生姓名),這個(gè)sname的學(xué)生用戶登錄時(shí)輸入的姓名。 (2,password)。import 。 } catch (SQLException e) { ()。 try { stm = ()。 (sql)。 } return false。 (2, sname)。 if(()) isfound=true。public class StudentDao { public boolean studentLogin(String sname,String password) { DBConnection db=new DBConnection()。import 。 } catch (SQLException e) { (close failure)。 ()。import 。在此界面的文本框中輸入要查詢成績(jī)的學(xué)生姓名,然后單擊檢索按鈕。輸入后單擊“成績(jī)查詢”按鈕,若密碼正確,這顯示該學(xué)生本人本學(xué)期成績(jī),若密碼不正確,這提示密碼錯(cuò)誤。截圖如下:在studentlogin(學(xué)生登錄)表中,有兩個(gè)屬性列,分別為:sname(學(xué)生姓名),password(登錄密碼)。在修改功能里面,包括對(duì)學(xué)生基本信息表和學(xué)生成績(jī)表進(jìn)行增加和刪除記錄 學(xué)生方面:學(xué)生通過(guò)自己的用戶名和密碼登錄此系統(tǒng)后, 可以查詢自己本學(xué)期的各科成績(jī)信息3.2系統(tǒng)模塊結(jié)構(gòu)圖3.3數(shù)據(jù)庫(kù)結(jié)構(gòu)設(shè)計(jì)為了支持此學(xué)生信息管理系統(tǒng),創(chuàng)建數(shù)據(jù)庫(kù)studentmanage。教師登陸后可以對(duì)學(xué)生基本信息表和學(xué)生成績(jī)表進(jìn)行查看、增添新記錄和刪除記錄等操作。學(xué)生登陸后能查詢自己的成績(jī)2.2系統(tǒng)運(yùn)行環(huán)境 Java運(yùn)行在eclipse軟件上,數(shù)據(jù)庫(kù)用mysql數(shù)據(jù)庫(kù)2.3功能需求描述學(xué)生信息管理系統(tǒng)要面對(duì)教師和學(xué)生用戶。在這個(gè)數(shù)據(jù)庫(kù)中包含四個(gè)表:student表,teacher表,studentlogin表和score表。其基本數(shù)據(jù)類型分別為:char,char。如果選擇教師用戶,則進(jìn)入教師登陸界面,在這個(gè)界面上輸入教師姓名和用戶密碼,輸入后單擊“登錄”按鈕,則進(jìn)入教師主界面。若數(shù)據(jù)庫(kù)中有此學(xué)生的成績(jī)信息,則生成列表顯示成績(jī)信息,若沒(méi)有此記錄,則列表內(nèi)容為空。import 。 } try { con=(jdbc:mysql://:3306/studentman age,root,root)。 ()。import 。 Connection con=()。 } catch (SQLException e) { ()。 (3, sex)。 } public ArrayList queryStudent(String field, String key) { ArrayList lis = new ArrayList()。 ResultSet rs = (sql)。 String sql = delete from student where sname like 39。 } return false。import 。 ResultSet rs=()。即此類的作用是每個(gè)學(xué)生登陸只能查看本人成績(jī)。import 。 Connection con = ()。 while (()) { Score score = new Score((1), (2), rs .getString(3), (4), (5))。 String sql = select * from score where sname like 39。 } return lis。 (5, credit)。 try { stm = ()。 } catch (SQLException e) { ()。public class Score { int num。 } public void setSname(String sname) { = sname。 = num。int age。 public int getNum() { return num。 } public String getDept() { return dept。 }}: (1) LoginUI類:此類為登陸界面,在這個(gè)界面上,設(shè)置有兩個(gè)按鈕,學(xué)生按鈕,教師按鈕。 Container cp。 (120, 230, 80, 30)。 (p1)。 } } class StudentLoginActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new StudentLoginUI()。import .*。 public static String st1。 JPanel p1 = new JPanel()。 (250, 190, 80, 30)。//注冊(cè)事件 cp = getContentPane()。 } class LoginActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { st1 = ()。 } } public static void main(String[] args) { new StudentLoginUI()。import .*。 JPanel topPanel。 (new FlowLayout())。 (學(xué)生成績(jī)查詢)。 (學(xué)科)。 (())。 repaint()。import 。 t1 = new JTextField(12)。 (250, 150, 80, 30)。 (250, 230, 80, 30)。 (400, 400)。 if (isSuccess) { new TeacherMainUI()。修改菜單中有“增加新生信息”“刪除畢業(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)建StudentDeleteUI類的對(duì)象,即打開(kāi)刪除學(xué)生基本信息的窗口,當(dāng)點(diǎn)擊“增加成績(jī)信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建ScoreAddUI類的對(duì)象,即打開(kāi)添加成績(jī)信息的窗口,當(dāng)點(diǎn)擊“刪除成績(jī)信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建ScoreDeleteUI類的對(duì)象,即打開(kāi)刪除成績(jī)信息的窗口。 (new BorderLayout())。 (new ExitActionListener())。//注冊(cè)事件 (queryMenuItem)。 (new AddActionListener())。 (changeMenu)。 } } class DeleteScoreActionListener implements ActionListener{ public void actionPerformed(ActionEvent e) { new ScoreDeleteUI()。import .*。 JPanel topPanel。 JPanel bottomPanel。 (性別)。 (selectionLabel)。 (, bookScrollPane)。 break。 break。 (性別)。 (())。 } } public static void main(String[] args) { new InformationQueryUI()。import .*。 JTextField keywordText。 selectionLabel = new JLabel(學(xué)生姓名)。 (retrievalButton)。 (學(xué)生信息檢索查詢系統(tǒng))。 (姓名)。 Score oneScore1 = (Score) (i)。 (model)。import .*。 l2 = new JLabel(姓名)。 t5 = new JTextField(6)。 (t1)。 (t3)。 (t5)。 (p1)。 String sname = ()。 ()。當(dāng)單擊“刪除”按鈕時(shí),通過(guò)注冊(cè)事件,在內(nèi)部類的actionPerformed()方法中,獲取這個(gè)文本框中的信息,作為實(shí)參,通過(guò)StudentDao類的deleteStudent()方法,就該省成績(jī)信息刪除。 JTextField t1。 (100, 100, 250, 50)。 (new DeleteListener())。 } // 窗口關(guān)閉 })。 } } public static void main(String[] args) { new StudentDeleteUI ()。import .*。 l4 = new JLabel(成績(jī))。 bt2 = new JButton(退出)。 (l2)。 (l4)。 (bt1)。 (400, 400)。 (new WindowAdapter() {// 匿名類開(kāi)始 public void windowClosing(WindowEvent e) // 把退出窗口的語(yǔ)句寫在本方法中 { dispose()。 (bt2)。 (t4)。 (t2)。 (null)。 t1 = new JTextField(20)。public class ScoreAddUI extends JFrame{ JLabel l1, l2, l3, l4, l5。根據(jù)五個(gè)標(biāo)簽的提示,分別在五個(gè)文本框中輸入信息。 String sname = ()。 (200, 200, (), ())。 (150, 200, 100, 30)。 public StudentDeleteUI () { l1 = new JLabel(請(qǐng)輸入要?jiǎng)h除基本信息的學(xué)生姓名:)。StudentDeleteUI類源代碼:package ui。 ()。 int age = (())。 (400, 400)。 (bt1)。 (l4)。 (l2)。 bt2 = new JButton(退出)。 l4 = new JLabel(年齡)。import .*。 } } public static void main(String[] args) { new ScoreQueryUI()。 (())。 (成績(jī))。 (true)。 (new RetrievalActionListener())。 retrievalButton = new JButton(查詢)。 String fieldSelected。import 。在文本框中輸入要查詢成績(jī)的學(xué)生姓名,單擊“查詢”按鈕時(shí),通過(guò)注冊(cè)事件,在內(nèi)部類的方法里,獲取從文本框中獲取的學(xué)生姓名信息,并把此信息作為實(shí)參傳給ScoreDao類的queryScore()方法,得到查詢結(jié)構(gòu)。 (())。 VectorVector content = new Vector()。 StudentDao oneStudentDao = new StudentDao()。 break。 (, bottomPanel)。 (keywordText)。 (new SelectedListener())。 selectionLabel = new JLabel(檢索方式)。 JTextField keywordText。import .*。 }}執(zhí)行截圖如下:(6)InformationQueryUI類:此類為學(xué)生基本信息查詢界面類,在此界面上有一個(gè)標(biāo)簽,一個(gè)下拉列表框,一個(gè)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1