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

正文內(nèi)容

java課程設(shè)計---基于mysql的學(xué)生信息管理系統(tǒng)-java(存儲版)

2025-02-28 06:31上一頁面

下一頁面
  

【正文】 定義書簽。 該系統(tǒng)要求使用 JAVA 和 MySQL作為開發(fā)工具和數(shù)據(jù)庫管理系統(tǒng),因此,系統(tǒng)設(shè)計涉及系統(tǒng)功能設(shè) 計、數(shù)據(jù)庫設(shè)計和系統(tǒng)界面等幾個方面內(nèi)容。 2 12 月 14 日 進(jìn)行需求分析 得到需求分析總結(jié) 。 1) 學(xué)生成績表 包含對 學(xué)生基 本信息表 和 課程設(shè)置表 的映射 2) 學(xué)生基本信息表 包含對 院系信息表 的映射 create table student ( id INT(11) PRIMARY KEY NOT NULL UNIQUE, name VARCHAR(20) , sex CHAR(1), birthday VARCHAR(20), depart VARCHAR(20), class VARCHAR(20) )。 ) 2. 實現(xiàn)方法 1) 建立 JFrame,JTable,JButton 等工具; 2) 建立數(shù)據(jù)庫鏈接; 3) 將數(shù)據(jù)庫里的數(shù)據(jù)逐個讀入到 JTable 類 ; 4) 對 JButton 加入 ActionListener,并關(guān)聯(lián)相應(yīng)的功能菜單 ,如: 圖表 4 子菜單 JAVA 課程設(shè)計 11 五、 學(xué)生信息錄入 1. 實際運行效果 ( 圖表 5) 實現(xiàn)方法 1) 由輸入的學(xué)生信息構(gòu)造一個 Student 類; 2) 利用 SQL 語句,將 Student 類插入到數(shù)據(jù)庫; 圖表 4 錄入學(xué)生 信息 JAVA 課程設(shè)計 12 六、 學(xué)生信息查找 (圖標(biāo) 6) 實現(xiàn)方法 1)由輸入的學(xué)號,利用 SQL 語句找到相關(guān)數(shù)據(jù),返回一個 Student 類; 2)有則將 student 的相關(guān)信息顯示到 JTextArea 上,沒有則顯示“學(xué)生信息未找到”; 圖表 6 查找學(xué)生信息 JAVA 課程設(shè)計 13 七、 學(xué)生信息刪除 1. 實際運行效果( 圖表 7) 圖表 7 學(xué)生信息刪除 JAVA 課程設(shè)計 14 2. 實現(xiàn)方法 1) 應(yīng)用查找功能相似的原理先搜索到要刪除的信息; 2) 利用 SQL 語句將找到的信息刪除,并顯示“學(xué)生信息以刪除”。 設(shè)計中遇到不少問題,到圖書館查閱了不少資料,向王宋君老師請教過不少問題,老師都一一細(xì)心解答,非常感謝。 String password = l057788y。 } public static void closeConnection(Connection con){ if(con!=null){ try { ()。 import 。 String sql = 。 (5, ())。 } return flag。 ((1))。 } ()。 String sql = 。 ((Sex))。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 //用問號代替 ps = (sql)。 } return flag。 import 。 (new Monitor2())。 (,20,12)。 } } } 四、 主菜單界面 ( ) package menu。 JPanel p = new JPanel()。 (new Monitor2())。 (l)。 (400,200,400,400)。 (false)。 import 。 import 。 JButton b_find = new JButton(查找 )。 (學(xué)號 )。 StudentDao ddao = new StudentDao()。 (())。 (p1,)。 (new Monitor2())。 (b_find)。 (p2,)。 (new Monitor2())。 (b_return)。 (400,200,400,400)。 (new Monitor2())。 (true)。 (t)。 (new Monitor2())。 } private class Monitor2 implements ActionListener{ public void actionPerformed(ActionEvent e) { if(().equals(返回 )){ (false)。 } if(().equals(學(xué)生查找 )){ (false)。 import 。 p1 = new JPanel()。 (new GridLayout(6,1))。 t2 = new JTextField(16)。 (t2)。 (t6)。 JAVA 課程設(shè)計 34 (b_cancel = new JButton(取消 ))。 } private class Monitor2 implements ActionListener{ public void actionPerformed(ActionEvent e) { if(().equals(取消 )){ (false)。 (())。 import .*。 JTextArea show。 find_find = new JButton(搜索 )。 (text)。 if(()!= null) { String str = 姓名: +()+\n 學(xué)號:+()+\n 性別: +()+\n 生日:+()+\n 院系代號: +()+\n 班級: +()+ 。 } } } public static void main(String args[]){ new Find_Menu().student_find()。 public class Delet_Menu { Student delet_student。 p1 = new JPanel()。 (false)。 (text)。 } if(().equals(搜索 )){ delet_student = new StudentDao().findOne((()))。 ()。 import 。 JButton delet_change,delet_find,delet_cancel。 delet_find = new JButton(搜索 )。 (p2,)。 } private class Monitor2 implements ActionListener{ public void actionPerformed(ActionEvent e) { if(().equals(取消 )){ (false)。 (學(xué)生信息未找到 , 1)。 } } 。 (true)。 JAVA 課程設(shè)計 40 (400,200,400,400)。 (p1,)。 show = new JTextArea(100,100)。 JTextField text。 import 。 (學(xué)生信息未找到 , 1)。 } private class Monitor2 implements ActionListener{ public void actionPerformed(ActionEvent e) { if(().equals(取消 )){ (false)。 (p2,)。 delet_find = new JButton(搜索 )。 JButton delet_ok,delet_find,delet_cancel。 import 。 ()。 new Son_menu().studentmenu()。 (p2,)。 text = new JTextField(16)。 JLabel l1。 import 。 (())。 (true)。 (p16)。 (t5)。 (t1)。 l6 = new JLabel(所在班級: )。 p15 = new JPanel()。 JButton b_ok,b_cancel。 import 。 } if(().equals(學(xué)生修改 )){ (false)。 (b_return)。 (new Monitor2())。 (p2,)。 (b_find)。 (new Monitor2())。 (p1,)。 (b_change)。 (院系查找 )。 (new BorderLayout())。 (b_delet)。 (學(xué)生修改 )。 (true)。 (())。 JAVA 課程設(shè)計 29 tableModel = new DefaultTableModel(columnNames,0)。 ArrayList scan = new ArrayList()。 JButton b_delet = new JButton(刪除 )。 import .*。 (false)。 JAVA 課程設(shè)計 27 (0)。 (b_score)。 JLabel l = new JLabel()。 (new Monitor2())。 import .*。 } JAVA 課程設(shè)計 25 private class Wind extends WindowAdapter{ public void windowClosing(WindowEvent e) { (false)。 (,200,20)。 JButton b = new JButton(確定 )。 import 。 flag = false。 String sql = 。 } ()。 //從表 depart 中查詢所有數(shù)據(jù) if(()){ ((id))。 Connection con = ()。 (())。 rs = (SELECT * FROM student)。 flag = false。 (3, ())。 Connection con = ()。 import 。 } catch (SQLException e) { // TODO Aut
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1