ImageVerifierCode 换一换
格式:DOCX , 页数:20 ,大小:17.89KB ,
资源ID:26866894      下载积分:10 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/26866894.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(基于JAVA的学生成绩管理系统源代码.docx)为本站会员(b****4)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

基于JAVA的学生成绩管理系统源代码.docx

1、基于JAVA的学生成绩管理系统源代码Java程序设计系专 业班 级学 号 15号姓 名 刘振基题 目 学生成绩管理系统任课教师彭杰一:要求1、 用到书上(课本或实验册)上的至少三个实例2、 用到至少两种布局和至少四种组件3、 用到对话框4、 用到对数据库的查询、删除、添加和修改5、 最好用到输入输出流6、 具有一定的实际意义二:内容 本系统用access作为数据库,用到了书上的布局实例和数据库连接实例功能: 1、输入十个同学的学号,姓名,出生日期,二科成绩(学,大学英语) 。2、输入学号查询学生信息。 3、删除记录4、查询记录5、添加记录6、修改记录三:代码第一部分:public class

2、main public static void main(String args) zhuchuangkou win=new zhuchuangkou(); 第二部分主界面:import .*;import .*;public class zhuchuangkou extends Frame implements ActionListener Button button1,button2,button3,button4,tuichu; Panel p1,p2,p3; Label l1,l2,l3; TextField a1,a2; Box b1,b2,b3,b4,b5; ss s; zhuch

3、uangkou() button1=new Button(登陆); button2=new Button(删除); button3=new Button(修改); button4=new Button(添加); tuichu=new Button(退出); p1=new Panel(); p2=new Panel(); p3=new Panel(); l1=new Label(学生成绩管理,; (new Font(宋体,72); ; l2=new Label(登录名); l3=new Label(密码); a1=new TextField(10); a2=new TextField(10);

4、(*); b1=(); (l2); (8); (l3); b2=(); (a1); (8); (a2); b4=(); (button1); (10); (tuichu); b3=(); (b1); (10); (b2); b5=(); (b3); (8); (b4); (this); (this); (this); (this); (this); (l1); (b5); add(p1,; add(p2,; add(p3,; addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) dispos

5、e(); ); setBackground; setBounds(10, 10, 1000, 500); setVisible(true); validate(); public void actionPerformed(ActionEvent e) if()=tuichu) (0); if()=button1) if().equals(liuzhenji)&().equals(123456) new chuankou(); dispose(); else 第三部分选择操作:import .*;import .*;public class zhuchuangkou extends Frame

6、implements ActionListener Button button1,button2,button3,button4,tuichu; Panel p1,p2,p3; Label l1,l2,l3; TextField a1,a2; Box b1,b2,b3,b4,b5; ss s; zhuchuangkou() button1=new Button(登陆); button2=new Button(删除); button3=new Button(修改); button4=new Button(添加); tuichu=new Button(退出); p1=new Panel(); p2

7、=new Panel(); p3=new Panel(); l1=new Label(学生成绩管理,; (new Font(宋体,72); ; l2=new Label(登录名); l3=new Label(密码); a1=new TextField(10); a2=new TextField(10); (*); b1=(); (l2); (8); (l3); b2=(); (a1); (8); (a2); b4=(); (button1); (10); (tuichu); b3=(); (b1); (10); (b2); b5=(); (b3); (8); (b4); (this); (th

8、is); (this); (this); (this); (l1); (b5); add(p1,; add(p2,; add(p3,; addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) dispose(); ); setBackground; setBounds(10, 10, 1000, 500); setVisible(true); validate(); public void actionPerformed(ActionEvent e) if()=tuichu) (0); if(

9、)=button1) if().equals(liuzhenji)&().equals(123456) new chuankou(); dispose(); else 第四部分查询界面实现:import .*;import .*;public class ss extends Frame implements TextListener,ActionListener Button xunzhao; TextField input; TextArea show; String s; int k; Connection con; Statement sql; int sum=0; ResultSet

10、 rs; ss() Panel p=new Panel(); xunzhao= new Button(查找); input= new TextField(10); show= new TextArea(6,43); (new Label(输入学号); (input); (xunzhao); (this); (this); (false); add(p,; add(show,; setBounds(10,30,500,200); setVisible(true); validate(); addWindowListener(new WindowAdapter() public void wind

11、owClosing(WindowEvent e) dispose(); ); public void actionPerformed(ActionEvent ee) boolean boo=true; s=(); k=(s); catch(ClassNotFoundException eee); try con=(jdbc:odbc:sun,gxy,123); sql=(); rs=(SELECT * FROM chengjibiao ); while() int number=(number); String name=(name); String date=(birthday); int

12、math=(math); int english=(english); if(number=k) boo=false; (null); (学号:+number+ 姓名:+name+ 出生:+date+ 数学 +math+ 英语 +english); (n); (); if(boo) (this, 你输入的学号不存在); catch(SQLException eee) 第五部分删除:import .*;import .*;public class shanchu extends Frame implements TextListener,ActionListener Button xunzhao

13、; TextField input; TextArea show; String s; int k,s1,j; Connection con; Statement sql; int sum=0; ResultSet rs; shanchu() Panel p=new Panel(); xunzhao= new Button(删除); input= new TextField(10); show= new TextArea(6,43); (new Label(输入要删除的 +学号); (input); (xunzhao); (this); (this); (false); add(p,; add

14、(show,; setBounds(10,30,500,200); setVisible(true); validate(); addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) dispose(); ); public void actionPerformed(ActionEvent ee) boolean boo=true; s=(); k=(s); String m,dir; catch(ClassNotFoundException eee) try con=(jdbc:odbc:s

15、un,gxy,123); sql=(); rs=(SELECT * FROM chengjibiao); while() int number=(2); String name=(3); String date=(birthday); int math=(math); int english=(english); if(number=k) (你删除了:); (学号:+number+ 姓名:+name+ 出生:+date+ 数学 +math+ 英语 +english); (n); m=DELETE FROM chengjibiao WHERE number=+k+; (m); (); catch

16、(SQLException e) 第六部分修改:import .*;import .*;public class xiugai extends Frame implements TextListener,ActionListener Button charu; TextField input1,input2,input3,input4,input5,input6; TextArea show; Panel p1,p2; int k,s1,j; Connection con; Statement sql; int sum=0; ResultSet rs; xiugai() p1=new Pane

17、l(); p2=new Panel(); charu= new Button(修改); input1= new TextField(10); input2= new TextField(10); input3= new TextField(10); input4= new TextField(10); input5= new TextField(10); input6= new TextField(10); show= new TextArea(6,43); (new Label(请输入要修改的学号); (new Label(number); (input1); (new Label(请输入修

18、改的数据); (new Label(name); (input2); (new Label(date); (input3); (new Label(math); (input4); (new Label(english); (input5); (charu); (this); (this); (false); add(p1,; add(p2,; setBounds(10,30,1200,200); setVisible(true); validate(); addWindowListener(new WindowAdapter() public void windowClosing(Windo

19、wEvent e) dispose(); ); public void actionPerformed(ActionEvent ee) boolean boo=true; String s0,s1,s2,s3,s4,s5,insert1,recode,name,date; int m0,m1,m2,m3,number,math,english; s1=(); m1=(s1); number=m1; s4=(); m2=(s4); math=m2; s5=(); m3=(s5); english=m3; catch(ClassNotFoundException eee) try con=(jdb

20、c:odbc:sun,gxy,123); sql=();recode=(+m0+,+number+,+name+,+date+,+math+,+english+); insert1=UPDATE chengjibiao SET math=+math+,english=+english+ WHERE number=+number+; (insert1); catch(SQLException e) 第七部分添加:import .*;import .*;public class charu extends Frame implements TextListener,ActionListener B

21、utton charu; TextField input1,input2,input3,input4,input5,input6; TextArea show; int k,s1,j; Connection con; Statement sql; int sum=0; ResultSet rs; charu() Panel p=new Panel(); charu= new Button(插入); input1= new TextField(10); input2= new TextField(10); input3= new TextField(10); input4= new TextFi

22、eld(10); input5= new TextField(10); input6= new TextField(10); show= new TextArea(6,43); (new Label(请输入要插入的数据); (new Label(ID); (input6); (new Label(number); (input1); (new Label(name); (input2); (new Label(date); (input3); (new Label(math); (input4); (new Label(english); (input5); (charu); (this);

23、(this); (false); add(p,; add(show,; setBounds(10,30,1200,200); setVisible(true); validate(); addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) dispose(); ); public void actionPerformed(ActionEvent ee) boolean boo=true; String s0,s1,s2,s3,s4,s5,insert1,recode,name,date; i

24、nt m0,m1,m2,m3,number,math,english; s0=(); m0=(s0); s1=(); m1=(s1); number=m1; s2=(); name=s2; s3=(); date=s3; s4=(); m2=(s4); math=m2; s5=(); m3=(s5); english=m3; catch(ClassNotFoundException eee) try con=(jdbc:odbc:sun,gxy,123); sql=();recode=(+m0+,+number+,+name+,+date+,+math+,+english+); insert1

25、=INSERT INTO chengjibiao VALUES +recode; (insert1); (你插入了:); (学号:+number+ 姓名:+name+ 出生:+date+ 数学 +math+ 英语 +english); (n); catch(SQLException e) (this, 你输入的不正确); 四:运行效果五总结:本次课程设计,让我获益匪浅,不仅更深入的了解Java这门学科,更使自己有了继续探索的兴趣。于个人而言,在程序设计的过程中,我深感“认真严谨”这个词的重要性,一点点小的马虎,便会导致整个程序不能正常运行。在今后的学习中,我定将“认真严谨时刻作为自的谨言。与此同时,本小组成员的互帮互助,让我体会到了团结的力量,而更让人难以忘怀的是在热烈讨论问题时,那激情横溢的场面。总之,此次课程设计在我的学生生涯中启上了至关重要的作用。最后,真诚的感谢彭老师的指导和教诲。

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1