收藏于 2008-05-29
来自于百度空间
/************************************************************************************
****课程设计题目:学生信息管理系统
****模块划分:信息录入、信息查询、成绩录入、成绩查询、关于作者
****作者:南阳理工、刘云争
*************************************************************************************/
import javax.swing.JFrame;
import java.awt.SystemColor;
import javax.swing.JTabbedPane;
import java.awt.BorderLayout;
import java.awt.Rectangle;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.CardLayout;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JRadioButton;
import javax.swing.JTextArea;
import javax.swing.JTable;
import javax.swing.JToggleButton;
import javax.swing.JMenuBar;
import java.awt.Font;
import javax.swing.JTextPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Color;
import javax.swing.UIManager;
import javax.swing.JScrollPane;
import javax.swing.JList;
import java.sql.*;
public class stuManager extends JFrame {
public stuManager() {
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
}
try{ Class.forName("com.mysql.jdbc.Driver").newInstance();
}catch(Exception exc){}
}
public static void main(String args[]){
stuManager sm=new stuManager();
}
private void jbInit() throws Exception {
this.getContentPane().setBackground(Color.orange);
this.setJMenuBar(null);
this.setVisible(true);
this.setSize(510,450);
this.getContentPane().setLayout(null);
jTabbedPane1.setBounds(new Rectangle(3, 68, 491, 332));
jLabel1.setText("学号:");
jLabel1.setBounds(new Rectangle(26, 47, 42, 15));
jTextField1.setText("jTextField1");
jTextField1.setBounds(new Rectangle(92, 40, 91, 21));
jLabel2.setText("姓名:");
jLabel2.setBounds(new Rectangle(260, 47, 42, 15));
jTextField2.setText("jTextField2");
jTextField2.setBounds(new Rectangle(326, 39, 87, 21));
jLabel3.setText("单位:");
jLabel3.setBounds(new Rectangle(28, 108, 42, 15));
jTextField3.setText("jTextField3");
jTextField3.setBounds(new Rectangle(92, 101, 91, 21));
jLabel4.setText("年龄:");
jLabel4.setBounds(new Rectangle(258, 108, 42, 15));
jTextField4.setText("jTextField4");
jTextField4.setBounds(new Rectangle(326, 101, 87, 21));
jLabel5.setText("籍贯:");
jLabel5.setBounds(new Rectangle(25, 166, 42, 15));
jTextField7.setText("jTextField7");
jTextField7.setBounds(new Rectangle(90, 159, 323, 21));
jButton1.setBounds(new Rectangle(26, 208, 83, 25));
jButton1.setText("添加");
jButton1.addActionListener(new stuManager_jButton1_actionAdapter(this));
jButton2.setBounds(new Rectangle(173, 207, 83, 25));
jButton2.setText("修改");
jButton2.addActionListener(new stuManager_jButton2_actionAdapter(this));
jButton3.setBounds(new Rectangle(330, 207, 83, 25));
jButton3.setText("删除");
jButton3.addActionListener(new stuManager_jButton3_actionAdapter(this));
jPanel2.setLayout(null);
jLabel8.setText("查询所有:");
jLabel8.setBounds(new Rectangle(37, 20, 71, 15));
jLabel9.setText("按学号查询:");
jLabel9.setBounds(new Rectangle(37, 68, 78, 15));
jButton4.setBounds(new Rectangle(197, 13, 123, 25));
jButton4.setText("查询所有");
jButton4.addActionListener(new stuManager_jButton4_actionAdapter(this));
jTextField8.setText("jTextField8");
jTextField8.setBounds(new Rectangle(197, 64, 121, 21));
jButton5.setBounds(new Rectangle(381, 60, 83, 25));
jButton5.setText("查询");
jButton5.addActionListener(new stuManager_jButton5_actionAdapter(this));
jLabel10.setText("Web技术基础:");
jLabel10.setBounds(new Rectangle(37, 20, 77, 15));
jPanel3.setLayout(null);
jTextField9.setText("jTextField9");
jTextField9.setBounds(new Rectangle(130, 16, 72, 21));
jLabel11.setText("大学英语:");
jLabel11.setBounds(new Rectangle(256, 19, 65, 15));
jTextField10.setText("jTextField10");
jTextField10.setBounds(new Rectangle(348, 15, 82, 21));
jLabel12.setText("软件工程:");
jLabel12.setBounds(new Rectangle(50, 87, 65, 15));
jTextField11.setText("jTextField11");
jTextField11.setBounds(new Rectangle(131, 83, 72, 21));
jLabel13.setText("大型数据库:");
jLabel13.setBounds(new Rectangle(244, 87, 68, 15));
jTextField12.setText("jTextField12");
jTextField12.setBounds(new Rectangle(348, 80, 82, 21));
jLabel14.setText("java高级编程:");
jLabel14.setBounds(new Rectangle(25, 158, 85, 15));
jTextField13.setText("jTextField13");
jTextField13.setBounds(new Rectangle(126, 157, 72, 21));
jLabel15.setText("学号:");
jLabel15.setBounds(new Rectangle(274, 157, 48, 15));
jTextField14.setText("jTextField14");
jTextField14.setBounds(new Rectangle(346, 157, 84, 21));
jButton6.setBounds(new Rectangle(40, 200, 83, 25));
jButton6.setText("添加");
jButton6.addActionListener(new stuManager_jButton6_actionAdapter(this));
jButton7.setBounds(new Rectangle(188, 202, 83, 25));
jButton7.setText("修改");
jButton7.addActionListener(new stuManager_jButton7_actionAdapter(this));
jButton8.setBounds(new Rectangle(347, 203, 83, 25));
jButton8.setText("删除");
jButton8.addActionListener(new stuManager_jButton8_actionAdapter(this));
jPanel4.setLayout(null);
jLabel16.setText("查询所有人:");
jLabel16.setBounds(new Rectangle(18, 22, 83, 15));
jButton9.setBounds(new Rectangle(143, 17, 113, 25));
jButton9.setText("查询所有");
jButton9.addActionListener(new stuManager_jButton9_actionAdapter(this));
jLabel17.setText("按学号查询:");
jLabel17.setBounds(new Rectangle(18, 61, 100, 15));
jTextField15.setText("jTextField15");
jTextField15.setBounds(new Rectangle(143, 61, 113, 21));
jButton10.setBounds(new Rectangle(284, 61, 89, 25));
jButton10.setText("查询");
jButton10.addActionListener(new stuManager_jButton10_actionAdapter(this));
jLabel18.setFont(new java.awt.Font("宋体-方正超大字符集", Font.PLAIN, 20));
jLabel18.setText("学生信息管理系统");
jLabel18.setBounds(new Rectangle(145, 24, 175, 40));
jPanel1.setBackground(Color.orange);
jPanel1.setToolTipText("");
jPanel1.setLayout(null);
jPanel2.setBackground(Color.orange);
jPanel4.setBackground(Color.orange);
jPanel3.setBackground(Color.orange);
jPanel6.setBackground(Color.orange);
jPanel6.setLayout(null);
jLabel6.setFont(new java.awt.Font("方正姚体", Font.PLAIN, 25));
jLabel6.setText("关于作者:");
jLabel6.setBounds(new Rectangle(16, 8, 115, 50));
jLabel7.setFont(new java.awt.Font("方正姚体", Font.PLAIN, 18));
jLabel7.setText("南阳理工");
jLabel7.setBounds(new Rectangle(116, 73, 73, 26));
jLabel19.setFont(new java.awt.Font("方正姚体", Font.PLAIN, 18));
jLabel19.setText("刘云争");
jLabel19.setBounds(new Rectangle(116, 121, 66, 25));
jLabel20.setFont(new java.awt.Font("方正姚体", Font.PLAIN, 18));
jLabel20.setText("");
jLabel20.setBounds(new Rectangle(116, 163, 178, 24));
jLabel21.setFont(new java.awt.Font("方正姚体", Font.PLAIN, 18));
jLabel21.setText("能力有限,目前只能这么简单");
jLabel21.setBounds(new Rectangle(116, 205, 238, 31));
jTextArea1.setText("jTextArea1");
jTextArea1.setBounds(new Rectangle(14, 99, 439, 192));
jTextArea2.setText("jTextArea2");
jTextArea2.setBounds(new Rectangle(18, 102, 445, 180));
jTextArea3.setText("jTextArea3");
jTextArea3.setBounds(new Rectangle(102, 243, 281, 36));
jLabel22.setText("提示:");
jLabel22.setBounds(new Rectangle(40, 243, 42, 23));
jLabel23.setText("提示:");
jLabel23.setBounds(new Rectangle(69, 241, 48, 15));
jTextArea4.setText("jTextArea4");
jTextArea4.setBounds(new Rectangle(132, 246, 298, 32));
jPanel1.add(jLabel3);
jPanel1.add(jLabel1);
jPanel1.add(jTextField1);
jPanel1.add(jTextField3);
jPanel1.add(jLabel4);
jPanel1.add(jLabel2);
jPanel1.add(jTextField4);
jPanel1.add(jTextField2);
jPanel1.add(jLabel5);
jPanel1.add(jTextField7);
jPanel1.add(jButton1);
jPanel1.add(jButton2);
jPanel1.add(jButton3);
jPanel1.add(jLabel22);
jPanel1.add(jTextArea3);
jPanel2.add(jLabel8);
jPanel2.add(jLabel9);
jPanel2.add(jButton5);
jPanel2.add(jTextField8);
jPanel2.add(jButton4);
jPanel2.add(jTextArea2);
jPanel3.add(jLabel10);
jPanel3.add(jTextField9);
jPanel3.add(jTextField11);
jPanel3.add(jTextField13);
jPanel3.add(jTextField10);
jPanel3.add(jTextField12);
jPanel3.add(jTextField14);
jPanel3.add(jLabel12);
jPanel3.add(jLabel14);
jPanel3.add(jLabel11);
jPanel3.add(jLabel13);
jPanel3.add(jLabel15);
jPanel3.add(jButton6);
jPanel3.add(jLabel23);
jPanel3.add(jTextArea4);
jPanel3.add(jButton8);
jPanel3.add(jButton7);
jPanel4.add(jButton9);
jPanel4.add(jButton10);
jPanel4.add(jTextField15);
jPanel4.add(jLabel17);
jPanel4.add(jLabel16);
jPanel4.add(jTextArea1);
jTabbedPane1.add(jPanel1, "录入信息");
jPanel6.add(jLabel6);
jPanel6.add(jLabel7);
jPanel6.add(jLabel20);
jPanel6.add(jLabel19);
jPanel6.add(jLabel21);
this.getContentPane().add(jLabel18);
this.getContentPane().add(jTabbedPane1);
jTabbedPane1.add(jPanel2, "信息查询");
jTabbedPane1.add(jPanel3, "成绩录入");
jTabbedPane1.add(jPanel4, "成绩查询");
jTabbedPane1.add(jPanel6, "关于作者");
jTabbedPane1.setSelectedComponent(jPanel3);
}
JTabbedPane jTabbedPane1 = new JTabbedPane();
JPanel jPanel1 = new JPanel();
JLabel jLabel1 = new JLabel();
JTextField jTextField1 = new JTextField();
JLabel jLabel2 = new JLabel();
JTextField jTextField2 = new JTextField();
JLabel jLabel3 = new JLabel();
JTextField jTextField3 = new JTextField();
JLabel jLabel4 = new JLabel();
JTextField jTextField4 = new JTextField();
JLabel jLabel5 = new JLabel();
JTextField jTextField7 = new JTextField();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
JPanel jPanel2 = new JPanel();
JLabel jLabel8 = new JLabel();
JLabel jLabel9 = new JLabel();
JButton jButton4 = new JButton();
JTextField jTextField8 = new JTextField();
JButton jButton5 = new JButton();
JPanel jPanel3 = new JPanel();
JLabel jLabel10 = new JLabel();
JTextField jTextField9 = new JTextField();
JLabel jLabel11 = new JLabel();
JTextField jTextField10 = new JTextField();
JLabel jLabel12 = new JLabel();
JTextField jTextField11 = new JTextField();
JLabel jLabel13 = new JLabel();
JTextField jTextField12 = new JTextField();
JLabel jLabel14 = new JLabel();
JTextField jTextField13 = new JTextField();
JLabel jLabel15 = new JLabel();
JTextField jTextField14 = new JTextField();
JButton jButton6 = new JButton();
JButton jButton7 = new JButton();
JButton jButton8 = new JButton();
JPanel jPanel4 = new JPanel();
JLabel jLabel16 = new JLabel();
JButton jButton9 = new JButton();
JLabel jLabel17 = new JLabel();
JTextField jTextField15 = new JTextField();
JButton jButton10 = new JButton();
JMenuBar jMenuBar1 = new JMenuBar();
JLabel jLabel18 = new JLabel();
JPanel jPanel6 = new JPanel();
JLabel jLabel6 = new JLabel();
JLabel jLabel7 = new JLabel();
JLabel jLabel19 = new JLabel();
JLabel jLabel20 = new JLabel();
JLabel jLabel21 = new JLabel();
JTextArea jTextArea1 = new JTextArea();
JTextArea jTextArea2 = new JTextArea();
JTextArea jTextArea3 = new JTextArea();
JLabel jLabel22 = new JLabel();
JLabel jLabel23 = new JLabel();
JTextArea jTextArea4 = new JTextArea();
//课程名字
String w="web应用技术:";
String engl="大学英语:";
String r="软件工程:";
String o="大型数据库:";
String j="j2se高级编程:";
//判断挂科,计算平均、总分。变量
String web="";
String eng="";
String rg="";
String or="";
String j2="";
String zong="";
String ave="";
//连接mysql数据库
static Connection conn;
static Statement sql;
ResultSet rs;
public static void lian()
{
try{String uri="jdbc:mysql://localhost:3306/stu_manager";
String user="root";
String password="";
conn=DriverManager.getConnection(uri,user,password);
sql=conn.createStatement();
}catch(Exception exc){}
}
//防乱码
public String han(String s){
try{ byte bb[]=s.getBytes("ISO-8859-1");
s=new String(bb,"gb2312");
}catch(Exception exq){}
return s;
}
//信息录入——>添加
public void jButton1_actionPerformed(ActionEvent e) {
lian();
String sid_in = jTextField1.getText();
String sname_in = jTextField2.getText();
String danwei_in = jTextField3.getText();
String sage_in = jTextField4.getText();
String saddress_in = jTextField7.getText();
String add="insert into student values ('" +sid_in + "','" + sname_in + "','"+ danwei_in+"','"+sage_in+"','"+saddress_in+"');";
try{sql.executeUpdate(add);
sql.close();
conn.close();
}catch(Exception ex){jTextArea3.setText("添加失败");}
jTextArea3.setText("添加成功");
}
//信息录入——>修改
public void jButton2_actionPerformed(ActionEvent e) {
lian();
String sid_in =jTextField1.getText();
String sname_in =jTextField2.getText();
String danwei_in =jTextField3.getText();
String sage_in =jTextField4.getText();
String saddress_in =jTextField7.getText();
String updata="update student set sname='"+sname_in.trim()+"',danwei='"+danwei_in.trim()+"',sage='"+sage_in.trim()+"',saddress='"+saddress_in.trim()+"' where sid='" +Integer.parseInt(sid_in)+ "'";
try{ sql.executeUpdate(updata);
sql.close();
conn.close();
}catch(Exception ex){jTextArea3.setText("修改失败");}
jTextArea3.setText("修改成功");
}
//信息录入——>删除
public void jButton3_actionPerformed(ActionEvent e) {
lian();
String sid_in =jTextField1.getText();
String delete="delete from student where sid='"+Integer.parseInt(sid_in)+"'";
try{ sql.executeUpdate(delete);
sql.close();
conn.close();
}catch(Exception ex){jTextArea3.setText("删除失败");}
jTextArea3.setText("学号为:"+sid_in+"的同学的信息已删除");
}
//计算总分,判断挂科
public void panduan(){
String web_in=jTextField9.getText();
String english_in=jTextField10.getText();
String ruangong_in=jTextField11.getText();
String orcal_in=jTextField12.getText();
String j2se_in=jTextField13.getText();
float a=Float.parseFloat(web_in);
if(0添加
public void jButton6_actionPerformed(ActionEvent e) {
lian();
panduan();
String sid_in=jTextField14.getText();
String web_in=jTextField9.getText();
String english_in=jTextField10.getText();
String ruangong_in=jTextField11.getText();
String orcal_in=jTextField12.getText();
String j2se_in=jTextField13.getText();
String add="insert into chengji values ('" +sid_in + "','"+web_in+""+web+"','"+ english_in+""+eng+"','"+ruangong_in+""+rg+"','"+orcal_in+""+or+"','"+j2se_in+""+j2+"','"+zong+"','"+ave+"');";
try{sql.executeUpdate(add);
sql.close();
conn.close();
}catch(Exception ex){System.out.println(ex);jTextArea4.setText("添加失败");}
jTextArea4.setText("添加成功");
}
//成绩录入——>修改
public void jButton7_actionPerformed(ActionEvent e) {
lian();
panduan();
String w="web应用技术:";
String eg="大学英语";
String r="软件工程";
String o="大型数据库";
String j="j2se高级编程";
String sid_in=jTextField14.getText();
String web_in=jTextField9.getText();
String english_in=jTextField10.getText();
String ruangong_in=jTextField11.getText();
String orcal_in=jTextField12.getText();
String j2se_in=jTextField13.getText();
String updata="update chengji set web='"+w+""+web_in+""+web+"',english='"+eg+""+ english_in+""+eng+"',ruangong='"+r+""+ruangong_in+""+rg+"',orcal='"+o+""+orcal_in+""+or+"',j2se='"+j+""+j2se_in+""+j2+"',zongfen='"+zong+"',average='"+ave+"' where sid='" +Integer.parseInt(sid_in)+ "'";
try{ sql.executeUpdate(updata);
sql.close();
conn.close();
}catch(Exception ex){jTextArea4.setText("修改失败");}
jTextArea4.setText("修改成功");
}
//成绩录入——>删除
public void jButton8_actionPerformed(ActionEvent e) {
lian();
String sid_in =jTextField14.getText();
String delete="delete from chengji where sid='"+Integer.parseInt(sid_in)+"'";
try{ sql.executeUpdate(delete);
sql.close();
conn.close();
}catch(Exception ex){jTextArea4.setText("删除失败");}
jTextArea4.setText("学号为:"+sid_in+"的同学的成绩已删除");
}
//信息查询——>所有
public void jButton4_actionPerformed(ActionEvent e) {
lian();
String out_sid="";
String out_sname="";
String out_danwei="";
String out_sage="";
String out_saddress="";
String output = jTextArea2.getText();
String query="select * from student;";
try{
rs=sql.executeQuery(query);
if(rs.next()){
jTextArea2.setText("1前面没错");
out_sid = han(rs.getString("sid"));
out_sname =han( rs.getString("sname"));
out_danwei = han(rs.getString("danwei"));
out_sage = han(rs.getString("sage"));
out_saddress = han(rs.getString("saddress"));
output = "学号:"+out_sid +" "+"姓名:" +out_sname+ "\n"+ "单位:" +out_danwei+" "+"年龄:"+out_sage+ "\n" + "籍贯:" +
out_saddress;
jTextArea2.setText(output);
sql.close();
conn.close();
}
}catch(Exception ex){System.out.println(ex);}
}
//信息查询——>按学号
public void jButton5_actionPerformed(ActionEvent e) {
lian();
String out_sid="";
String out_sname="";
String out_danwei="";
String out_sage="";
String out_saddress="";
String sid_in =jTextField8.getText();
String output = "";
String query="select * from student where sid='"+Integer.parseInt(sid_in)+"';";
try{
rs=sql.executeQuery(query);
if(rs.next()){
out_sid = han(rs.getString("sid"));
out_sname =han( rs.getString("sname"));
out_danwei = han(rs.getString("danwei"));
out_sage = han(rs.getString("sage"));
out_saddress = han(rs.getString("saddress"));
output = "学号:"+out_sid +" "+"姓名:" +out_sname+ "\n"+ "单位:" +out_danwei+" "+"年龄:"+out_sage+ "\n" + "籍贯:" +
out_saddress;
jTextArea2.setText(output);
sql.close();
conn.close();
}
}catch(Exception ex){}
}
//成绩查询——>所有
public void jButton9_actionPerformed(ActionEvent e) {
lian();
String out_sid="";
String out_web="";
String out_english="";
String out_ruangong="";
String out_orcal="";
String out_j2se="";
String out_zongfen="";
String out_average="";
String output = "";
String query="select * from chengji;";
try{
rs=sql.executeQuery(query);
if(rs.next()){
out_sid = han(rs.getString("sid"));
out_web =han( rs.getString("web"));
out_english = han(rs.getString("english"));
out_ruangong = han(rs.getString("ruangong"));
out_orcal = han(rs.getString("orcal"));
out_j2se= han(rs.getString("j2se"));
out_zongfen=han(rs.getString("zongfen"));
out_average=han(rs.getString("average"));
output = "学号:"+out_sid +" "+w +out_web+ "\n"+ engl +out_english+" "+r+ out_ruangong+ "\n" + o +out_orcal+" "+j+out_j2se+"总分"+out_zongfen+"平均分"+out_average;
jTextArea1.setText(output);
sql.close();
conn.close();
}
}catch(Exception ex){}
}
//成绩查询——>按学号
public void jButton10_actionPerformed(ActionEvent e) {
lian();
String out_sid="";
String out_web="";
String out_english="";
String out_ruangong="";
String out_orcal="";
String out_j2se="";
String out_zongfen="";
String out_average="";
String sid_in =jTextField15.getText();
String output = jTextArea1.getText();
String query="select * from chengji where sid='"+Integer.parseInt(sid_in)+"';";
try{
rs=sql.executeQuery(query);
if(rs.next()){
out_sid = han(rs.getString("sid"));
out_web =han( rs.getString("web"));
out_english = han(rs.getString("english"));
out_ruangong = han(rs.getString("ruangong"));
out_orcal = han(rs.getString("orcal"));
out_j2se= han(rs.getString("j2se"));
out_zongfen=han(rs.getString("zongfen"));
out_average=han(rs.getString("average"));
output = "学号:"+out_sid +" "+w +out_web+ "\n"+ engl +out_english+" "+r+ out_ruangong+ "\n" + o +out_orcal+" "+j+out_j2se+"总分"+out_zongfen+"平均分"+out_average;
jTextArea1.setText(output);
sql.close();
conn.close();
}
}catch(Exception exdf){}
}
}
class stuManager_jButton10_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton10_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton10_actionPerformed(e);
}
}
class stuManager_jButton9_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton9_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton9_actionPerformed(e);
}
}
class stuManager_jButton5_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton5_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton5_actionPerformed(e);
}
}
class stuManager_jButton4_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton4_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton4_actionPerformed(e);
}
}
class stuManager_jButton8_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton8_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton8_actionPerformed(e);
}
}
class stuManager_jButton7_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton7_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton7_actionPerformed(e);
}
}
class stuManager_jButton6_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton6_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton6_actionPerformed(e);
}
}
class stuManager_jButton3_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton3_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
}
}
class stuManager_jButton2_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton2_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton2_actionPerformed(e);
}
}
class stuManager_jButton1_actionAdapter implements ActionListener {
private stuManager adaptee;
stuManager_jButton1_actionAdapter(stuManager adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}