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

正文內(nèi)容

基于java與sql數(shù)據(jù)庫技術(shù)的學(xué)生成績管理系統(tǒng)-展示頁

2025-01-24 22:03本頁面
  

【正文】 nel pan=new JPanel()。 JButton btnCancel=new JButton(取消 )。 JTextField txtScore=new JTextField(20)。 JTextField txtName=new JTextField(20)。 JLabel labDate=new JLabel(出生日期: )。 import .*。 import .*。 }catch(SQLException e){ } } } public static void main(String[] args) { new ModifyForm()。 (false)。 ()。 ()。 (記錄修改完畢! )。+()+39。+()+39。)。,成績 =+()+ where 姓名=39。 } }catch(SQLException e){ } Java程序設(shè)計 6 }else if(()==btnModify){ try{ (Update 成績表 set 出生日期=39。 (false)。 ()。 (false)。 (true)。 (true)。 (new Integer((成績)).toString())。)。 rs=(select * from 成績表 where 姓名=39。} catch(ClassNotFoundException e){ } try{con=(jdbc:odbc:sun,gxy,123)。 } public void actionPerformed(ActionEvent ae){ if(()==btnCancel){ dispose()。 setVisible(true)。 (false)。 (this)。 (this)。 getContentPane().add(pan,Center)。 Java程序設(shè)計 5 (pan2)。 (new GridLayout(3,1))。 (btnModify)。 (txtScore)。 (txtDate)。 (txtName)。 setSize(400,300)。 ResultSet rs。 Connection con。 JPanel pan3=new JPanel()。 JPanel pan1=new JPanel()。 JButton btnQuery=new JButton(查詢 )。 JButton btnModify=new JButton(修改 )。 JTextField txtDate=new JTextField(18)。 JLabel labScore=new JLabel(成績: )。 public class ModifyForm extends JFrame implements ActionListener { JLabel labName=new JLabel(姓名: )。 import .*。 } } 運(yùn)行效果: Java程序設(shè)計 4 修改數(shù)據(jù): /*修改數(shù)據(jù) */ import .*。 else if(()==mScore) new ScoreQueryForm().setVisible(true)。 else if(()==mModify) new ModifyForm().setVisible(true)。 else if(()==mAdd) new AddForm().setVisible(true)。 } public void actionPerformed(ActionEvent ae){ if(()==mExit) (0)。 setContentPane(new MyPanel())。 (this)。 (this)。 (this)。 Java程序設(shè)計 3 setJMenuBar(mBar)。 (mQuery)。 (mSystem)。 (mScore)。 (mModify)。 (mAdd)。 setSize(875,583)。 JMenuBar mBar=new JMenuBar()。 JMenu mHelp=new JMenu(幫助 )。 JMenuItem mName=new JMenuItem(按姓名查詢 )。 JMenuItem mModify=new JMenuItem(修改 )。 JMenuItem mAdd=new JMenuItem(添加 )。 JMenuItem mExit=new JMenuItem(退出 )。 public void paint(Graphics g){ (img,0,0,this)。 import .*。 Java程序設(shè)計 2 三、程序代碼及運(yùn)行效果: 主類代碼: /*主類代碼 */ import .*。 程序的實際意義: 本《學(xué)生成績管理系統(tǒng)》具有對學(xué)生成績進(jìn)行管理的功能。Java程序設(shè)計 1 一、課程設(shè)計要求: 用到書上(課本或?qū)嶒瀮裕┥系闹辽偃齻€實例; 用到至少兩種布局和至少四種組件; 用到對話框; 用到對數(shù)據(jù)庫的查詢、刪除、添加和修改; 最好用到輸入輸出流; 具有一定的實際意義。 二、用到的實例及實際意義: 程序所用到的實例: 《 Java2使用教程》第 10 章例題 P282; 《 Java2使用教程》第 11 章例題 P323; 《 Java2使用教程》第 15 章所有例題均有使用作參考 P391411; 在其他 參考書和網(wǎng)上也有用到相關(guān)程序和代碼,并有所參考和借鑒。并于數(shù)據(jù)庫相連接,能夠?qū)W(xué)生的成績、姓名、出生日期進(jìn)行查詢、添加和刪除等,簡捷方便,容易使用。 import .*。 class MyPanel extends JPanel{ Image img=().getImage(c:/)。 } } public class MainForm extends JFrame implements ActionListener { JMenu mSystem=new JMenu(系 統(tǒng) )。 JMenu mOperate=new JMenu(數(shù)據(jù)操作 )。 JMenuItem mDel=new JMenuItem(刪除 )。 JMenu mQuery=new JMenu(查詢 )。 JMenuItem mScore=new JMenuItem(按成績查詢 )。 JMenuItem mAbout=new JMenuItem(軟件信息 )。 MainForm() { super(學(xué)生成績管理系統(tǒng) )。 (mExit)。 (mDel)。 (mName)。 (mAbout)。 (mOperate)。 (mHelp)。 (this)。 (this)。 (this)。 (this)。 setVisible(true)。 else if(()==mAbout) (this,學(xué)生成績管理系統(tǒng) \n\n 應(yīng)用科學(xué)學(xué)院 \n\n2022年 4月 ,軟件信息 ,)。 else if(()==mDel) new DeleteForm().setVisible(true)。 else if(()==mName) new NameQueryForm().setVisible(true)。 } public static void main(String[] args) { new MainForm()。 import .*。 import .*。 JLabel labDate=new JLabel(出生日期: )。 JTextField txtName=new JTextField(20)。 JTextField txtScore=new JTextField(20)。 JButton btnCancel=new JButton(取消 )。 JPanel pan=new JPanel()。 JPanel pan2=new JPanel()。 JPanel pan4=new JPanel()。 Statement sql。 ModifyForm() { super(修改數(shù)據(jù) )。 (labName)。 (labDate)。 (labScore)。 (btnQuery)。 (btnCancel)。 (pan1)。 (pan3)。 getContentPane().add(pan4,South)。 (this)。 (false)。 (false)。 ()。 } else if(()==btnQuery){ try{ ()。 sql=()。+()+39。 if(()){ ((姓名 ))。 ((出生日期 ).toString())。 (true)。 }else{ (不存在該記錄 ! )。 ()。 ()。 (false)。+()+39。+()+39。 (Update 成績表 set 出生日期=39。,成績 =+()+ where 姓名=39。)。 (false)。 ()。 (false)。 ()。 } } 運(yùn)行效果: Java程序設(shè)計 7 刪除數(shù)據(jù): /*刪除數(shù)據(jù) */ import .*。 import .*。 public class DeleteForm extends JFrame implements ActionListener { JLa
點擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1