学生成绩管理系统 - java课程设计报告(8)

2020-02-21 00:21

public void actionPerformed(final ActionEvent e) {

String sql=\学期信息 where 学号='\+t1.getText()+\;

final JButton button_2 = new JButton();

button_2.addActionListener(new ActionListener() {

public void actionPerformed(final ActionEvent e) { }

xueqixinxi1 c=new xueqixinxi1(); c.setVisible(true); dispose();

oo = new JTextArea();

oo.setBounds(18, 76, 354, 231); getContentPane().add(oo);

}

try { }

sa=cn.createStatement(); s=sa.executeUpdate(sql); if(s==1) { } else {

JOptionPane.showMessageDialog(null, \失败\); }

// TODO Auto-generated catch block e1.printStackTrace();

JOptionPane.showMessageDialog(null, \删除成功\);

} catch (SQLException e1) {

});

button_1.setText(\删除\);

button_1.setBounds(260, 25, 66, 28); getContentPane().add(button_1);

});

button_2.setText(\增加\);

button_2.setBounds(331, 25, 66, 28); getContentPane().add(button_2);

final JButton button_2_1 = new JButton();

button_2_1.addActionListener(new ActionListener() {

public void actionPerformed(final ActionEvent e) { }

xueqixinxi2 c=new xueqixinxi2(); c.setVisible(true); dispose();

});

button_2_1.setText(\修改\);

button_2_1.setBounds(403, 25, 66, 28); getContentPane().add(button_2_1); final JButton button_3 = new JButton();

button_3.addActionListener(new ActionListener() {

public void actionPerformed(final ActionEvent e) { } });

shouye c=new shouye(); c.setVisible(true); dispose();

public xueqixinxi1() {

super();

setTitle(\); getContentPane().setLayout(null); setBounds(100, 100, 500, 375);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); String su,sp; su=\; sp=\;

try {

Class.forName( \ ); cn=

DriverManager.getConnection( \eName=学生成绩管理系统\ , su, sp);

} catch (ClassNotFoundException e1) { }

final JButton button_1 = new JButton();

button_1.addActionListener(new ActionListener() {

public void actionPerformed(final ActionEvent e) {

String sql=\学期信息

t2 = new JTextField();

t2.setBounds(180, 79, 87, 22); getContentPane().add(t2);

t1 = new JTextField();

t1.setBounds(180, 36, 87, 22); getContentPane().add(t1);

final JLabel label_1 = new JLabel(); label_1.setText(\学期\);

label_1.setBounds(82, 81, 66, 18); getContentPane().add(label_1);

final JLabel label = new JLabel(); label.setText(\学号\);

label.setBounds(82, 38, 66, 18); getContentPane().add(label); // TODO Auto-generated catch block e1.printStackTrace();

// TODO Auto-generated catch block e.printStackTrace();

} catch (SQLException e) {

values('\+t1.getText()+\+t2.getText()+\;

final JButton button = new JButton();

button.addActionListener(new ActionListener() {

public void actionPerformed(final ActionEvent e) { } });

xueqixinxi c=new xueqixinxi(); c.setVisible(true); dispose();

}

try { }

sa=cn.createStatement();

s=sa.executeUpdate(sql); if(s==1) { } else {

JOptionPane.showMessageDialog(null, \增加失败\); }

// TODO Auto-generated catch block e1.printStackTrace();

JOptionPane.showMessageDialog(null, \增加成功\);

} catch (SQLException e1) {

});

button_1.setText(\增加\);

button_1.setBounds(105, 258, 106, 28); getContentPane().add(button_1);

public xueqixinxi2() { try {

Class.forName( \ ); cn=

super();

setTitle(\); getContentPane().setLayout(null); setBounds(100, 100, 500, 375);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); String su,sp; su=\; sp=\;

DriverManager.getConnection( \eName=学生成绩管理系统\ , su, sp);

} catch (ClassNotFoundException e1) { }

final JLabel label = new JLabel(); // TODO Auto-generated catch block e1.printStackTrace();

// TODO Auto-generated catch block e.printStackTrace();

} catch (SQLException e) {


学生成绩管理系统 - java课程设计报告(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:罗岗中学教学常规管理实施方案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: