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) {