毕业设计论文学生信息管理系统(完整代码、数据库、图片)内容摘要:

TextField txtYX new JTextField 20。 ButtonGroup bgp new ButtonGroup。 JRadioButton man new JRadioButton 男。 JRadioButton women new JRadioButton 女。 JButton btnAdd new JButton 添加。 JButton btnCancel new JButton 返回。 JButton btnReset new JButton 重置。 JPanel jpl new JPanel。 //创建面板对象 Connection conn。 Statement stmt。 ResultSet rst。 addForm super 添加学生信息。 false。 550,450。 true。 400,200。 jpl。 null。 this。 this。 this。 100,20,300,20。 label1。 100,50,70,20。 labxuehao。 190,50,140,20。 txtXueHao。 100,90,70,20。 labName。 190,90,140,20。 txtName。 110,130,60,20。 labsex。 190,130,60,20。 270,130,60,20。 man。 women。 man。 women。 100,180,70,20。 labyear。 190,180,140,20。 txtYear。 100,210,70,20。 labDate。 190,210,140,20。 txtDate。 100,240,70,20。 labmz。 190,240,140,20。 txtYX。 100,270,70,20。 labclass。 190,270,140,20。 txtClass。 100,300,70,20。 labzy。 190,300,140,20。 txtZY。 80,350,90,20。 200,350,90,20。 320,350,90,20。 btnReset。 btnAdd。 btnCancel。 public void actionPerformed ActionEvent e if btnCancel dispose。 new Menu。 if btnAdd if .toString .equals null, 请输入学号 , 温馨提示 ,。 else if .toString .equals null, 请输入姓名 , 温馨提示 ,。 else if .toString .equals null, 请输入年龄 , 温馨提示 ,。 else if .toString .equals null, 出生日期 , 温馨提示 ,。 else if .toString .equals null, 请输入专业 , 温馨提示 ,。 else if .toString .equals null, 请输入院系 , 温馨提示 ,。 else if .toString .equals null, 请输入班级 , 温馨提示 ,。 else String sex。 if sex 男。 else sex 女。 Connctsql。 try Statement stmt。 int a insert into 学籍信息表 学号 ,姓名 ,年龄 , 出生日期 , 性别 ,班级 ,专业 ,院系 values 39。 + +39。 ,39。 + +39。 ,39。 + +39。 ,39。 + +39。 ,39。 +sex+39。 ,39。 + +39。 ,39。 + +39。 ,39。 + +39。 if a 1 null,已成功添加 ,温馨提示 ,。 else null,添加失败 ,温馨提示 ,。 catch SQLException se null,。 else。 public static void main String[] args new addForm。 private void Connctsql //连接 sqlserver2020 数据库的函数 try eerverDriver。 conn jdbc: DatabaseName student,sa,123456789。 //连接 student 数据库 catch Exception e Sytln e。 ⑤修改学生界面 import .*。 import .*。 import .*。 import t.*。 public class modifyForm extends JFrame implements ActionListener JPanel jpl new JPanel。 JLabel SCH new JLabel 修改学生信息 ,。 Font f new Font 楷体 ,+,30。 JLabel label1 new JLabel 请输入学号: ,。 JButton btnQuery new JButton 查询。 JLabel label2 new JLabel 姓名: ,。 JLabel labyear new JLabel 年龄: ,。 JLabel labDate new JLabel 出生日期: ,。 JLabel label5 new JLabel 性别: ,。 JLabel label3 new JLabel 班级: ,。 JLabel label4 new JLabel 专业: ,。 JLabel labmz new JLabel 院系: ,。 ButtonGroup bgp new ButtonGroup。 JRadioButton man new JRadioButton 男。 JRadioButton women new JRadioButton 女。 JTextField tyear new JTextField。 JTextField tDate new JTextField。 JTextField tmz new JTextField。 JTextField num new JTextField。 JTextField nam new JTextField。 JTextField clas new JTextField。 JTextField scl new JTextField。 JButton btnModify new JButton 修改。 JButton btnCancel new JButton 取消。 Connection con。 Statement sql。 ResultSet rs。 int re。 public modifyForm 560,460。 400,200。 true。 false。 jpl。 null。 this。 this。 this。 100,20,300,20。 SCH。 100,60,100,20。 label1。 220,60,140,20。 num。 120,100,90,20。 230,100,90,20。 340,100,90,20。 btnQuery。 btnModify。 btnCancel。 100,150,70,20。 label2。 190,150,140,20。 nam。 100,180,70,20。 labyear。 190,180,140,20。 tyear。 100,210,70,20。 labDate。 190,210,140,20。 tDate。 100,250,70,20。 label5。 205,250,60,20。 285,250,60,20。 man。 women。 man。 women。 100,290,70,20。 label3。 190,290,140,20。 clas。 100,320,70,20。 label4。 190,320,140,20。 scl。 100,350,70,20。 labmz。 190,350,140,20。 tmz。 public void actionPerformed ActionEvent ae if btnCancel Menu m new Menu。 else if btnQuery try Connctsql。 sql。 rs select * from 学籍信息表 where。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。