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

正文內(nèi)容

學(xué)生信息管理系統(tǒng)(java)代碼(編輯修改稿)

2025-01-20 13:57 本頁面
 

【文章內(nèi)容簡介】 int j1 = 0。 try { if (!bstd) {// 判斷選擇的是不是查詢后的結(jié)果 rs = (select * from c)。 } else { rs = (select * from c where o=39。 + mkch + 39。)。 } while (() amp。amp。 j1 = row) {// 找出當(dāng)前被選中的 記錄在數(shù)據(jù)庫中的對應(yīng) kch = (o)。 kcm = ()。 xxkch = (po)。 j1++。 } } catch (SQLException e) { ()。 } CAdd cadd = new CAdd()。 (修改 )。 (kch)。 (kcm)。 (xxkch)。 (false)。 ()。 } } public void select() {// 顯示某個查詢的結(jié)果 mkch = 。 playerInfo = new Object[1][3]。 String[] columnNames = { 課程號 , 課程名 , 先行課程號 }。 try { rs = (select * from c where o=39。 + mkch + 39。)。 while (()) { playerInfo[0][0] = (o)。 playerInfo[0][1] = ()。 playerInfo[0][2] = (po)。 } } catch (SQLException e) { ()。 } if (playerInfo[0][1] == null) { ()。 (null, 課程號不存在! )。 new CM(課程信息管理 ).display()。 } else { sTable = new JTable(playerInfo, columnNames)。// 創(chuàng)建網(wǎng)格 (sTable)。 scroll = new JScrollPane(sTable)。 (scroll)。 } } public void actionPerformed(ActionEvent e) { if (() == 增加 ) { new CAdd()。 ()。 } if (() == 刪除 ) { ()。 } if (() == 修改 ) { ()。 } if (() == 查詢 ) { cst = new CSelect()。 ()。 } if (() == 顯示 ) { ()。 new CM(課程信息管理 ).display()。 } } } import .*。 import 。 import 。 import 。 import 。 import 。 import .*。 public class CSelect extends JFrame implements ActionListener {// 用于課程信息管理中查詢時輸入課程號的界面 JLabel ltitle = new JLabel(課程號: )。 JTextField to = new JTextField(8)。 JButton btnOK = new JButton(確定 )。 JPanel p = new JPanel()。 String kch = null。 public CSelect() { // 構(gòu)造方法 (ltitle)。 (to)。 (btnOK)。 add(p)。 (300, 280, 200, 160)。 (this)。 (false)。 ()。 } public void actionPerformed(ActionEvent e) { kch = ()。// 取得當(dāng)前輸入課程號的值 if (()) {// 判斷是否輸入了課程號 (null, 課程號不能為空,請重新輸入! )。 } else { ()。 new CM(this, 課程信息管理 ).select()。 } } } import .*。 import .*。 import .*。 import .*。 class DLFrame extends JFrame implements ActionListener, ItemListener {// 登錄界面 JPanel p1 = null。 JPanel p2 = null。 JPanel p3 = null。 JLabel userName = new JLabel(用戶: )。 JTextField txtUser = new JTextField()。 JLabel password = new JLabel(密碼: )。 JPasswordField txtPwd = new JPasswordField(6)。 JLabel role = new JLabel(角色: )。 JComboBox cbrole = new JComboBox()。 JButton btnLogin = new JButton(登錄 )。 JButton btncz = new JButton(重置 )。 JButton btnCancel = new JButton(取消 )。 JLabel imageLabel。 Icon image。 static int OK = 1。 static int CANCEL = 0。 int actionCode = 0。 Connection con = null。 Statement stmt = null。 ResultSet rs = null。 int qxian = 0。 public DLFrame() {// 構(gòu)造方法 super(登錄界面 )。 p1 = new JPanel()。 p2 = new JPanel()。 p3 = new JPanel()。 (管理員 )。 (學(xué)生 )。 image = new ImageIcon(picture\\)。 imageLabel = new JLabel(image)。 (imageLabel)。 (new FlowLayout())。 (100, 100, 246, 345)。 (new GridLayout(4, 2))。 (userName)。 (txtUser)。 (password)。 (txtPwd)。 (role)。 (cbrole)。 (btnLogin)。 (btncz)。 (btnCancel)。 (p1)。 (p2)。 (p3)。 (false)。 ()。 ()。 (this)。 (this)。 (this)。 (this)。 } public void connDB() { // 連接數(shù)據(jù)庫 try { ()。 } catch (ClassNotFoundException e) { ()。 } try { con = ( jdbc: DatabaseName=student, sa, 123)。 stmt = ()。 } catch (SQLException e) { ()。 } } public void closeDB() // 關(guān)閉連接 { try { ()。 ()。 } catch (SQLException e) { ()。 } } public void itemStateChanged(ItemEvent e) { if (() == ) { JComboBox jcb = (JComboBox) ()。 qxian = ()。 } } public void actionPerformed(ActionEvent e) { Object source = ()。 String un = null。 String pw = null。 boolean success = false。// 用于判斷是否登錄成功 if (source == btnLogin) { if (().equals() || ().equals()) {// 判斷是否輸入了用戶名和密碼 (null, 登錄名和密碼不能為空! )。 } else { ()。 try { rs = (select * from unpw wh
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1