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

正文內(nèi)容

基于java的學(xué)生信息管理系統(tǒng)設(shè)計與實現(xiàn)-資料下載頁

2025-06-18 17:03本頁面
  

【正文】 時,程序結(jié)束 } public static void main(String[] args) { DelteStudent delstu = new DelteStudent()。 ()。 } // 刪除的監(jiān)聽器 class delAction implements ActionListener { public void actionPerformed(ActionEvent e) { String delsno = (String) ()。 boolean b = (delsno, conn)。 if (b) { (null, 刪除錄入成功!)。 } else { (null, 刪除錄入失??!)。 } } } class BackAction implements ActionListener{ public void actionPerformed(ActionEvent e) { MainFrame m=new MainFrame ()。 ()。 } }}package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class EditFrame extends JFrame { StudentDao studao = new StudentDao()。 DB db = new DB()。 Connection conn = ()。 JTextField snameText = null。 JComboBox sex = null。 JTextField ageText = null。 JComboBox class = null。 JComboBox depart = null。 JComboBox sno = null。 public void init() { // 窗體設(shè)計 (null)。 (學(xué)生信息管理系統(tǒng))。 (500, 400)。 JLabel title = new JLabel(學(xué)生信息維護(hù)模塊修改數(shù)據(jù))。 (180, 20, 200, 30)。 (title)。 JLabel snoLabel = new JLabel(學(xué)號)。 (20, 60, 40, 25)。 (snoLabel)。 try { Vector vec = ()。 sno = new JComboBox(vec)。 // 將數(shù)據(jù)庫里的學(xué)號信息裝入下拉框中 (60, 60, 120, 25)。 } catch (SQLException e) { ()。 } (sno)。 JLabel snameLabel = new JLabel(姓名)。 snameText = new JTextField()。 (220, 60, 40, 25)。 (260, 60, 120, 25)。 (snameLabel)。 (snameText)。 JLabel sexlabel = new JLabel(性別)。 String[] sex = { 男, 女 }。 sex = new JComboBox(sex)。 (20, 90, 40, 25)。 (60, 90, 120, 25)。 (sexlabel)。 (sex)。 JLabel ageLabel = new JLabel(年齡)。 ageText = new JTextField()。 (220, 90, 40, 25)。 (260, 90, 120, 25)。 (ageLabel)。 (ageText)。 JLabel classlabel = new JLabel(班級)。 String[] classes = { 信息081, 信息082, 物流081 }。 class = new JComboBox(classes)。 (20, 120, 40, 25)。 (60, 120, 120, 25)。 (classlabel)。 (class)。 JLabel departlabel = new JLabel(學(xué)院)。 String[] depart = { 造紙, 理學(xué)院, 機(jī)電學(xué)院 }。 depart = new JComboBox(depart)。 (220, 120, 40, 25)。 (260, 120, 120, 25)。 (departlabel)。 (depart)。 // 修改 JButton editbtn = new JButton(修改)。 (150, 180, 60, 30)。 (new editAction())。 (editbtn)。 // 返回 JButton backbtn = new JButton(返回)。 (220, 180, 60, 30)。 (new BackAction ())。 (backbtn)。 (null)。 // 使窗體居中 (false)。// 固定窗體大小 (true)。 // 設(shè)置窗體可見 // ()。 // 窗體關(guān)閉時,程序結(jié)束 } // 獲取文本框或選擇框的值 public Student getStudent() { Student stu = new Student()。 String sno = (String) ()。 // 獲取輸入的學(xué)號 String sname = ()。 // 獲取姓名 String sex = (String) ()。// 獲取性別 int age = (().trim())。 // 獲取年齡 String className = (String) ()。 // 獲取班級 String depart = (String) ()。 // 獲取學(xué)院 // 封裝信息 (sno)。 (sname)。 (sex)。 (age)。 (className)。 (depart)。 return stu。 } public static void main(String[] args) { EditFrame editstu = new EditFrame()。 ()。 } // 修改監(jiān)聽器 class editAction implements ActionListener { public void actionPerformed(ActionEvent e) { Student stu = getStudent()。 boolean b = ((), (), (), (), (), (), conn)。 if (b) { (null, 數(shù)據(jù)修改成功!)。 } else { (null, 數(shù)據(jù)修改失敗!)。 } } } class BackAction implements ActionListener{ public void actionPerformed(ActionEvent e) { MainFrame m=new MainFrame ()。 ()。 } }} THANKS !!!致力為企業(yè)和個人提供合同協(xié)議,策劃案計劃書,學(xué)習(xí)課件等等打造全網(wǎng)一站式需求歡迎您的下載,資料僅供參考可修改編
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1