学生学籍管理系统(含java源代码)内容摘要:

号 :)。 static JTextField textField1 = new JTextField()。 static JLabel label2 = new JLabel(姓名 :)。 static JTextField textField2 = new JTextField()。 static JLabel label3 = new JLabel(性别 :)。 static JTextField textField7=new JTextField()。 static JLabel label4 = new JLabel(出生日期 :)。 static JTextField textField3 = new JTextField()。 static JLabel label5 = new JLabel(政治面貌 :)。 static JTextField textField8=new JTextField()。 static JLabel label6 = new JLabel(籍贯 )。 static JTextField textField4 = new JTextField()。 static JLabel label7 = new JLabel(系别 :)。 static JTextField textField9 = new JTextField()。 static JLabel label8 = new JLabel(专业 :)。 static JTextField textField5 = new JTextField()。 static JButton button1 = new JButton(增加 )。 public tj() { (增加学生信息 )。 (null)。 (400,400)。 (30, 11, 51, 33)。 (86, 16, 74, 22)。 (162, 11, 51, 33)。 (192, 16, 44, 22)。 (241, 11, 70, 33)。 (275, 15, 50, 25)。 (31, 53, 55, 33)。 (86, 58, 74, 22)。 (241, 53, 70, 33)。 (296, 57, 72, 25)。 (163, 53, 26, 33)。 (191, 58, 44, 22)。 (30, 94, 50, 33)。 (86,94,74,22)。 (163, 94, 51, 33)。 (190, 99, 178, 22)。 (25,241,80,33)。 (this)。 (label1)。 (label2)。 (label3)。 (label4)。 (label5)。 (label6)。 (label7)。 (label8)。 (textField1)。 (textField2)。 (textField3)。 (textField4)。 (textField5)。 (textField7)。 (textField8)。 (textField9)。 (button1)。 ()。 (true)。 } public static void main(String[] args) throws Exception { tj a= new tj()。 ()。 } public void actionPerformed(ActionEvent e)//事件处理程序 { if (() == button1) { try{ ()。 } catch (ClassNotFoundException ce) { (s,())。 } try { Connection con = (jdbc:odbc:stu,sa, )。 Statement stmt = ()。 ResultSet rs=(select * from xinxi where 学号=?+ ()+?)。 if(()) { (null, 此 学 号 已 经 被 注 册)。 } else { (insert into xinxi (学号 ,姓名 ,性别 ,出生日期 ,政治面貌 , 籍贯 ,系别 ,专业 ) values (?+ ()+?,?+() +?,?+()+?,?+ ()+?,?+() +?,?+()+?,?+ ()+?,?+()+?))。 (null, 添 加 信 息 成 功)。 } } catch (SQLException se) { (s,())。 } } } } // 修改界面 import .*。 import .*。 import .*。 import .*。 public class xg extends JFrame implements ActionListener { static xg s。 static JLabel label1 = new JLabel(学号 :)。 static JTextField textField1 = new JTextField()。 static JLabel label2 = new JLabel(姓名 :)。 static JTextField textField2 = new JTextField()。 static JLabel label3 = new JLabel(性别 :)。 static JTextField textField7=new JTextField()。 static JLabel label4 = new JLabel(出生日期 :)。 static JTextField textField3 = new JTextField()。 static JLabel label5 = new JLabel(政治面貌 :)。 static JTextField textField8=new JTextField()。 static JLabel label6 = new JLabel(籍贯 )。 static JTextField textField4 = new JTextField()。 static JLabel label7 = new JLabel(系别 :)。 static JTextField textField9 = new JTextField()。 static JLabel label8 = new JLabel(专业 :)。 static JTextField textField5 = new JTextField()。 static JButton button2=new JButton(修改 )。 public xg() { (修改学生信息 )。 (null)。 (400,400)。 (30, 11, 51, 33)。 (86, 16, 74, 22)。 (162, 11, 51, 33)。 (192, 16, 44, 22)。 (24。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。