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

正文內(nèi)容

學生信息管理系統(tǒng)(java)代碼-閱讀頁

2025-01-04 13:57本頁面
  

【正文】 .trim()。 if (().equals(un)) { if (().equals(pw)) { actionCode = OK。 if (qxian == 0) { new ManagerFrane()。// 進入學生界面 } success = true。 } else { (null, 密碼錯誤! )。 success = true。 ()。 } } catch (SQLException e1) { ()。 ()。 } } } import .*。 import .*。 class GAdd extends JFrame implements ActionListener {// 用于成績信息管理中修改成績的界面 JLabel lo = new JLabel(學號: )。 JLabel lg = new JLabel(成績: )。 JTextField tame = new JTextField(10)。 JButton btnOK = new JButton(確定 )。 JPanel p = new JPanel()。 Statement stmt = null。 boolean isNewsm = true。 (200, 200, 146, 235)。 (lo)。 (lame)。 (lg)。 (btnOK)。 (p)。 ()。 (this)。 } public void connDB() { // 連接數(shù)據(jù)庫 try { ()。 } try { con = ( jdbc: DatabaseName=student, sa, 123)。 } catch (SQLException e) { ()。 ()。 } } public void insertst() { // 修改成績 String kch = null。 String xxkch = null。 kcm = ()。 String go = null。 rs = (select o from c where =39。)。// 找出哪門課程的成績要被修改 } (go)。 + xxkch + 39。 + kch + 39。 + go + 39。 } catch (SQLException e) { ()。 if (isNewsm) { new GM(成績信息管理 ).display()。 } isNewsm = true。 new GM(成績信息管理 ).display()。 import 。 import .*。 import .*。 class GM extends JFrame implements ActionListener {// 成績信息管理 JPanel p = new JPanel()。 JButton btnSearch = new JButton(查詢 )。 JMenuBar mb = new JMenuBar()。 JTable sTable。 Connection con = null。 ResultSet rs = null。 GSelect gst。 String mxh = null。 GM(String title) {// 構(gòu)造方法 super(title)。 (Center, p1)。 (btnSearch)。 ()。 (this)。 (this)。 // ()。 show()。 = gst。 add(South, p)。 (btnAlter)。 (btnDisplay)。 (200, 200, 400, 260)。 (this)。 (mb)。 (false)。 } public void display() {// 顯示所有的成績信息 int i = 0。 int k = 0。 try { rs = (select * from sc,c where =)。 (())。 i++。 } playerInfo = new Object[i][3]。 try { rs = (select * from sc,c where =)。 playerInfo[j][1] = ()。 j++。 } sTable = new JTable(playerInfo, columnNames)。 scroll = new JScrollPane(sTable)。 } public void connDB() { // 連接數(shù)據(jù)庫 try { ()。 } try { con = ( jdbc: DatabaseName=student, sa, 123)。 } catch (SQLException e) { ()。 ()。 } } public void update() {// 修改某個學生的成績信息 String kch = null。 String xxkch = null。 row = ()。 } else { int j1 = 0。 } else { rs = stmt .executeQuery(select * from sc,c where = and sno=39。)。amp。 kcm = ()。 j1++。 } GAdd gadd = new GAdd()。 (kch)。 (xxkch)。 (false)。 } } public void select() {// 顯示某個學生的成績查詢結(jié)果 int j = 0。 mxh = 。 String[] columnNames = { 學號 , 課程名 , 成績 }。 + mxh + 39。 while (()) { playerInfo[j][0] = (sno)。 playerInfo[j][2] = (g)。 } } catch (SQLException e) { ()。 (null, 學號不存在! )。 } else { sTable = new JTable(playerInfo, columnNames)。 scroll = new JScrollPane(sTable)。 } } public void actionPerformed(ActionEvent e) { if (() == 修改成績 ) { ()。 ()。 new GM(成績信息管理 ).display()。 import 。 import 。 import 。 import 。 public class GSelect extends JFrame implements ActionListener {// 用于成績信息管理中查詢時輸入學號的界面 JLabel ltitle = new JLabel(學號: )。 JButton btnOK = new JButton(確定 )。 Connection con = null。 ResultSet rs = null。 int i = 0。 (tsno)。 add(p)。 (this)。 ()。 } catch (ClassNotFoundException e) { ()。 stmt = ()。 } } public void closeDB() // 關(guān)閉連接 { try { ()。 } catch (SQLException e) { ()。 try { rs = stmt .executeQuery(select * from sc,c where = and sno=39。)。 (())。 i++。 } } public void actionPerformed(ActionEvent e) { gxh = ()。 ()。 } else { ()。 } } } import .*。 import .*。 JPanel p2 = new JPanel()。 JButton btnc = new JButton(課程信息管理 )。 JButton btng = new J
點擊復制文檔內(nèi)容
教學課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1