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

正文內(nèi)容

java課程設(shè)計(jì)報(bào)告學(xué)生成績管理系統(tǒng)-資料下載頁

2024-12-15 16:41本頁面

【導(dǎo)讀】一個圖形用戶界面,有兩種權(quán)限登錄方式,分別是老師和學(xué)生。學(xué)號刪除學(xué)生的記錄,成績等。在登錄以前先選擇好是老。師登錄還是學(xué)生登錄,然后進(jìn)入不同的頁面行使不同的權(quán)限。該系統(tǒng)需要與數(shù)據(jù)庫連接才能夠完成上述的功能。這些操作只要輸入正確的學(xué)。生學(xué)號及在數(shù)據(jù)庫chengjibiao里的學(xué)號,就能進(jìn)行相應(yīng)的操作。學(xué)號對應(yīng)的信息。庫與程序成功的連接了。程序存在的不足是程序的界面還不美觀,看著不漂亮。通過這次JAVA課程設(shè)計(jì)自己感覺自己的編程技巧有了一定的提高。

  

【正文】 ultSet rs。 shanchu() { Toolkit kit = ()。 Image img = ()。 (img)。 Panel p = new Panel()。 xunzhao = new Button(刪除 )。 input = new TextField(15)。 show = new TextArea(6, 43)。 Label l1=new Label(輸入要刪除學(xué)生的學(xué)號 )。 (new Font(宋體 ,15))。 ()。 (l1)。 (input)。 (xunzhao)。 (this)。 (false)。 bg = new ImageIcon()。 JLabel label = new JLabel(bg)。 (0, 0, (), ())。 imagePanel = (JPanel) ()。 (false)。 (new FlowLayout())。 (p, )。 (show, )。 ().setLayout(null)。 ().add(label, new Integer())。 //()。 26 ((), ())。 (710, 210, 480, 310)。 (true)。 (false)。//設(shè)置窗口大小不可改變 validate()。 addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { dispose()。 } })。 } public void actionPerformed(ActionEvent ee) { boolean boo = true。 s = ()。 String m。 try { ()。 } catch (ClassNotFoundException eee) { ( + eee)。 } try { con = (jdbc:Name=學(xué)生成績管理系統(tǒng) , sa, 55151777)。 sql = ()。 rs = (SELECT * FROM chengjibiao)。 while (()) { String number = (number)。 String name = (name)。 String date = (date)。 int math = (math)。 int english = (english)。 if ((s)) { (你刪除了 :)。 (學(xué)號: + number + 姓名: + name + 出生: + date + 數(shù)學(xué) + math + 英語 + english)。 (\n)。 m = DELETE FROM chengjibiao WHERE number = 39。 + () + 39。 (m)。 } } 27 ()。 if (boo) { (this, 你輸入的學(xué)號不存在 )。 } } catch (SQLException e) { (e)。 } } } /* * 修改成績界面 */ class xiugai extends JFrame implements ActionListener { JFrame frame = new JFrame(修改成績 )。 JPanel imagePanel。 ImageIcon bg。 Button xiug。 TextField input1, input2, input3。 TextArea show。 Box box1, box2, box3。 Panel p1, p2。 int k, s1, j。 Connection con。 Statement sql。 int sum = 0。 ResultSet rs。 xiugai() { Toolkit kit = ()。 Image img = ()。 (img)。 p1 = new Panel()。 p2 = new Panel()。 xiug = new Button(修改 )。 input1 = new TextField(10)。 input2 = new TextField(10)。 input3 = new TextField(10)。 show = new TextArea(6, 43)。 Font f=new Font(宋體 ,15)。 Label l1=new Label(輸入學(xué)號 )。 28 (f)。 ()。 (l1)。 (new Label(學(xué)號: ))。 (input1)。 box1 = ()。 ((8))。 (new Label(數(shù)學(xué): ))。 ((8))。 (new Label(英語: ))。 box2 = ()。 (input2)。 ((8))。 (input3)。 box3 = ()。 (box1)。 ((1))。 (box2)。 Label l2=new Label(輸入成績 )。 (f)。 ()。 (l2)。 (box3)。 (this)。 (false)。 bg = new ImageIcon()。 JLabel label = new JLabel(bg)。 (0, 0, (), ())。 imagePanel = (JPanel) ()。 (false)。 (new FlowLayout())。 (p1)。 (p2)。 (xiug)。 (show)。 ().setLayout(null)。 ().add(label, new Integer())。 //()。 29 ((), ())。 (720, 220, 450, 390)。 (false)。//設(shè)置窗口大小不可改變 (true)。 validate()。 addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { dispose()。 } })。 } public void actionPerformed(ActionEvent ee) { String s1, s2, s3, insert1, number。 。 int m2, m3, math, english。 s1 = ()。 number = s1。 s2 = ()。 s3 = ()。 m2 = (s2)。 math = m2。 m3 = (s3)。 english = m3。 try { ()。 } catch (ClassNotFoundException eee) { ( + eee)。 } try { con = (jdbc:Name=學(xué)生成績管理系統(tǒng) , sa, 55151777)。 sql = ()。 insert1 = UPDATE chengjibiao SET math = + math + ,english= + english + WHERE number = + 39。 + number + 39。 (insert1)。 (你將了 :)。 (學(xué)號為 + s1 + 的學(xué)生 數(shù)學(xué)成績更改為: + math + 英語成績更改為: + english)。 30 (\n)。 } catch (SQLException e) { (e)。 } } } 31 指導(dǎo)老師批閱: 32 (封底)
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1