首页上一页 1 下一页尾页 1 条记录 1/1页
登陆一个用户后,不退出,直接再登陆一个用户,如何设置跳出来????
发表在Java图书答疑
2009-05-22
是否精华
是
否
版块置顶:
是
否
package studentsystem;//封装
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import javax.swing.UIManager;
import java.awt.Toolkit;
import java.awt.Canvas;
import java.awt.Dimension;
import java.io.FileInputStream;
import sun.audio.AudioStream;
import sun.audio.*;
import java.io.*;
//导入包下的所有class类和接口
public class mainFrame
extends JFrame {//继承父类
JPanel contentPane;
String user1;
int power;
Statement ps;
ResultSet rs;
Connection con;
String url;
String username;
JMenuBar jMenuBar1 = new JMenuBar();//新建一个水平菜单栏
JMenu jMenuFile = new JMenu();//菜单(系统)
JMenu jMenuHelp = new JMenu();//新建一个菜单,(帮助)
JMenuItem jMenuHelpAbout = new JMenuItem();//新建一个菜单项00关于00
JMenuItem adduser = new JMenuItem();//菜单项 ,,00添加用户00
JMenu xjgl = new JMenu();//菜单,(学籍管理)
JMenuItem cxxj = new JMenuItem();//菜单项,00查询学籍信息00
JMenuItem xgxj = new JMenuItem();//菜单项,00修改学籍信息00
JMenuItem tjxj = new JMenuItem();//菜单项,00添加学籍信息00
JMenu bjgl = new JMenu();//菜单(班级管理)
JMenuItem xgbj = new JMenuItem();//菜单项,00修改班级信息00
JMenuItem tjbj = new JMenuItem();//菜单项,00添加班级信息00
JMenu kcsz = new JMenu();//菜单(课程设置)
JMenuItem sznj = new JMenuItem();//菜单项,00设置年级课程00
JMenuItem xgkc = new JMenuItem();//菜单项,00修改课程信息00
JMenuItem tjkc = new JMenuItem();//菜单项,00添加课程信息00
JMenu cjgl = new JMenu();//菜单(成绩管理)
JMenuItem tjcj = new JMenuItem();//菜单项,00添加成绩信息00
ImageIcon icon = new ImageIcon("images" + File.separator+"a.jpg");//一个接口连接加载图片
JLabel jLabel1 = new JLabel(icon, JLabel.CENTER);
JMenuItem xgcj = new JMenuItem();//00修改成绩00
JMenuItem cxcj = new JMenuItem();//菜单项,00查询成绩信息00
JMenuItem exit = new JMenuItem();//菜单项,00退出00
JMenuItem jMenuItem1 = new JMenuItem();//菜单项,00修改密码00
JMenuItem llyh = new JMenuItem();//菜单项,00浏览用户00
JMenuItem login = new JMenuItem();//菜单项,00用户登陆00
JMenu ghbj = new JMenu();//更换背景
JMenuItem jMenuItem2 = new JMenuItem();//菜单项,00南山00
JMenuItem jMenuItem3 = new JMenuItem();//菜单项,00红叶00
JMenuItem jMenuItem4 = new JMenuItem();//菜单项,00森林00
JMenuItem jMenuItem5 = new JMenuItem();//菜单项,00水晶00
FileInputStream fileau;// = new FileInputStream("lzlh.mid");
AudioStream as;
JMenu jMenu1 = new JMenu();//背景音乐
JMenuItem jMenuItem6 = new JMenuItem();//关闭
JMenuItem jMenuItem7 = new JMenuItem();//打开
public mainFrame() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
}
//Component initialization分量初始化
private void jbInit() throws Exception {
contentPane = (JPanel)this.getContentPane();
contentPane.setLayout(null);
//this.setSize(new Dimension(800, 600));
this.setResizable(false);
this.setTitle("河南省轻工业学校学生学籍管理系统");
jMenuFile.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuFile.setForeground(Color.black);
jMenuFile.setText(" 系统 ");
jMenuHelp.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuHelp.setText(" 帮助 ");
jMenuHelpAbout.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuHelpAbout.setText("关于");
jMenuHelpAbout.addActionListener(new mainFrame_jMenuHelpAbout_ActionAdapter(this));
adduser.setFont(new java.awt.Font("Dialog", 0, 15));
adduser.setText("添加用户");
adduser.addActionListener(new mainFrame_adduser_actionAdapter(this));
xjgl.setFont(new java.awt.Font("Dialog", 0, 15));
xjgl.setText(" 学籍管理 ");
xjgl.addActionListener(new mainFrame_xjgl_actionAdapter(this));
bjgl.setFont(new java.awt.Font("Dialog", 0, 15));
bjgl.setText(" 班级管理 ");
kcsz.setFont(new java.awt.Font("Dialog", 0, 15));
kcsz.setText(" 课程设置 ");
cjgl.setFont(new java.awt.Font("Dialog", 0, 15));
cjgl.setText("成绩管理");
tjcj.setFont(new java.awt.Font("Dialog", 0, 15));
tjcj.setText("添加成绩信息");
tjcj.addActionListener(new mainFrame_tjcj_actionAdapter(this));
tjxj.setFont(new java.awt.Font("Dialog", 0, 15));
tjxj.setForeground(Color.black);
tjxj.setText("添加学籍信息");
tjxj.addActionListener(new mainFrame_tjxj_actionAdapter(this));
// jMenuItem9.addActionListener(new mainFrame_jMenuItem9_actionAdapter(this));
xgxj.setFont(new java.awt.Font("Dialog", 0, 15));
xgxj.setText("修改学籍信息");
xgxj.addActionListener(new mainFrame_xgxj_actionAdapter(this));
cxxj.setFont(new java.awt.Font("Dialog", 0, 15));
cxxj.setText("查询学籍信息");
cxxj.addActionListener(new mainFrame_cxxj_actionAdapter(this));
// jMenuItem3.addActionListener(new mainFrame_jMenuItem3_actionAdapter(this));
tjbj.setFont(new java.awt.Font("Dialog", 0, 15));
tjbj.setText("添加班级信息");
tjbj.addActionListener(new mainFrame_tjbj_actionAdapter(this));
xgbj.setFont(new java.awt.Font("Dialog", 0, 15));
xgbj.setText("修改班级信息");
xgbj.addActionListener(new mainFrame_xgbj_actionAdapter(this));
tjkc.setFont(new java.awt.Font("Dialog", 0, 15));
tjkc.setText("添加课程信息");
tjkc.addActionListener(new mainFrame_tjkc_actionAdapter(this));
xgkc.setFont(new java.awt.Font("Dialog", 0, 15));
xgkc.setText("修改课程信息");
xgkc.addActionListener(new mainFrame_xgkc_actionAdapter(this));
sznj.setFont(new java.awt.Font("Dialog", 0, 15));
sznj.setText("设置年级课程");
sznj.addActionListener(new mainFrame_sznj_actionAdapter(this));
jLabel1.setText("");
jLabel1.setBounds(new Rectangle(1, 0, 800, 603));
xgcj.setFont(new java.awt.Font("Dialog", 0, 15));
xgcj.setText("修改成绩信息");
xgcj.addActionListener(new mainFrame_xgcj_actionAdapter(this));
cxcj.setFont(new java.awt.Font("Dialog", 0, 15));
cxcj.setText("查询成绩信息");
cxcj.addActionListener(new mainFrame_cxcj_actionAdapter(this));
exit.setFont(new java.awt.Font("Dialog", 0, 15));
exit.setText("退出");
exit.addActionListener(new mainFrame_exit_actionAdapter(this));
exit.addMouseListener(new mainFrame_exit_mouseAdapter(this));
jMenuItem1.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem1.setText("修改密码");
jMenuItem1.addActionListener(new mainFrame_jMenuItem1_actionAdapter(this));
llyh.setFont(new java.awt.Font("Dialog", 0, 15));
llyh.setText("浏览用户");
llyh.addActionListener(new mainFrame_llyh_actionAdapter(this));
login.setFont(new java.awt.Font("Dialog", 0, 15));
login.setText("用户登录");
login.addActionListener(new mainFrame_login_actionAdapter(this));
ghbj.setFont(new java.awt.Font("Dialog", 0, 15));
ghbj.setText("更换背景");
jMenuItem4.setFont(new java.awt.Font("SansSerif", 0, 15));
jMenuItem4.setHorizontalAlignment(SwingConstants.LEFT);
jMenuItem4.setHorizontalTextPosition(SwingConstants.LEFT);
jMenuItem4.setText("森林");
jMenuItem4.addActionListener(new mainFrame_jMenuItem4_actionAdapter(this));
jMenuItem3.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem3.setText("红叶");
jMenuItem3.addActionListener(new mainFrame_jMenuItem3_actionAdapter(this));
jMenuItem2.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem2.setText("南山");
jMenuItem2.addActionListener(new mainFrame_jMenuItem2_actionAdapter(this));
jMenuItem5.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem5.setText("水晶");
jMenuItem5.addActionListener(new mainFrame_jMenuItem5_actionAdapter(this));
jMenu1.addActionListener(new mainFrame_jMenu1_actionAdapter(this));
jMenu1.setFont(new java.awt.Font("Dialog", 0, 15));
jMenu1.setText("背景音乐");
jMenuItem7.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem7.setText("打开");
jMenuItem7.addActionListener(new mainFrame_jMenuItem7_actionAdapter(this));
jMenuItem6.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem6.setText("关闭");
jMenuItem6.addActionListener(new mainFrame_jMenuItem6_actionAdapter(this));
jMenuFile.add(login);
jMenuFile.add(llyh);
jMenuFile.add(jMenuItem1);
jMenuFile.add(adduser);
jMenuFile.add(exit);
jMenuHelp.add(jMenuHelpAbout);
jMenuBar1.add(jMenuFile);
jMenuBar1.add(xjgl);
jMenuBar1.add(bjgl);
jMenuBar1.add(kcsz);
jMenuBar1.add(cjgl);
jMenuBar1.add(ghbj);
jMenuBar1.add(jMenu1);
jMenuBar1.add(jMenuHelp);
fileau = new FileInputStream("music" + File.separator+"lzlh.mid");
as = new AudioStream(fileau);
xjgl.add(tjxj);
xjgl.add(xgxj);
xjgl.add(cxxj);
bjgl.add(tjbj);
bjgl.add(xgbj);
kcsz.add(tjkc);
kcsz.add(xgkc);
kcsz.add(sznj);
cjgl.add(tjcj);
cjgl.add(xgcj);
cjgl.add(cxcj);
contentPane.add(jLabel1, null);
ghbj.add(jMenuItem4);
ghbj.add(jMenuItem3);
ghbj.add(jMenuItem2);
ghbj.add(jMenuItem5);
jMenu1.add(jMenuItem7);
jMenu1.add(jMenuItem6);
this.setJMenuBar(jMenuBar1);
xjgl.setEnabled(false);
bjgl.setEnabled(false);
kcsz.setEnabled(false);
cjgl.setEnabled(false);
jMenuFile.setEnabled(true);
llyh.setEnabled(false);
adduser.setEnabled(false);
jMenuItem7.setEnabled(false);
this.setBounds(100, 100, 800, 600);
this.setVisible(true);
try {
AudioPlayer.player.start(as);
//System.out.println("添加音乐成功");
}
catch (Exception e1) {
e1.printStackTrace();
}
}
public static void main(String args[]) {
mainFrame main = new mainFrame();
}
public void jMenuFileExit_actionPerformed(ActionEvent e) {
System.exit(0);
Log log = new Log();
log.addLog("\r\r", username + "退出了系统!");
log.closeStream();
}
//Help | About action performed
public void jMenuHelpAbout_actionPerformed(ActionEvent e) {
new about();
}
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
jMenuFileExit_actionPerformed(null);
}
}
void adduser_actionPerformed(ActionEvent e) {
new adduser();
Log log = new Log();
log.addLog("\r\r", username + "浏览了添加用户模块!");
log.closeStream();
}
void xgmm_actionPerformed(ActionEvent e) {
new xiugaimima();
Log log = new Log();
log.addLog("\r\r", username + "浏览了修改密码模块!");
log.closeStream();
}
void tjbj_actionPerformed(ActionEvent e) {
new addxj();
Log log = new Log();
log.addLog("\r\r", username + "浏览了添加学籍模块");
log.closeStream();
}
void exit_actionPerformed(ActionEvent e) {
Log log = new Log();
log.addLog("\r\r", username + "退出了系统");
log.closeStream();
System.exit(0);
}
void xgbj_actionPerformed(ActionEvent e) {
new xgbj();
}
void xjgl_actionPerformed(ActionEvent e) {
}
void login_actionPerformed(ActionEvent e) {
username = JOptionPane.showInputDialog(this, "请输入用户名");
String pwd = JOptionPane.showInputDialog(this, "请输入密码");
if (! (username == null && pwd == null)) {
try {//连接数据库,验证用户
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//连接数据库驱动
Connection con = DriverManager.getConnection(
"jdbc:odbc:lee",
"sa", "123");
ps = con.createStatement(ResultSet.
TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
try {
rs = ps.executeQuery("select * from users where username='" +
username + "' "); //读取数据库
if (!rs.next())
{
Log log = new Log();
log.addLog("\r\r", username + "用户试图登录系统,失败!");
log.closeStream();
JOptionPane.showMessageDialog(null, "不存在此用户!");
}
else if (! (rs.getString("pwd").trim().equals(pwd))) {
JOptionPane.showMessageDialog(null, "密码错误!");
Log log = new Log();
log.addLog("\r\r", username + "用户试图登录系统,失败!");
log.closeStream();
}
else {
if (rs.getString("power").trim().equals("系统管理员")) {
xjgl.setEnabled(true);
bjgl.setEnabled(true);
kcsz.setEnabled(true);
cjgl.setEnabled(true);
jMenuFile.setEnabled(true);
llyh.setEnabled(true);
adduser.setEnabled(true);
Log log = new Log();
log.addLog("\r\r", username + "(系统管理员)登录系统");
log.closeStream();
}
else {
cjgl.setEnabled(true);
xjgl.setEnabled(true);
xgcj.setEnabled(false);
tjcj.setEnabled(false);
xgxj.setEnabled(false);
tjxj.setEnabled(false);
Log log = new Log();
log.addLog("\r\r", username + "(普通用户)登录系统");
log.closeStream();
}
}
}
catch (SQLException sqle) {
String error = sqle.getMessage();
JOptionPane.showMessageDialog(null, error);
sqle.printStackTrace();
}
}
catch (Exception err) {
// err.getMessage();
Log log = new Log();
log.addLog("\r\r", "数据库连接错误!");
log.closeStream();
String error = err.getMessage();
JOptionPane.showMessageDialog(null, error);
}
}
}
void tjxj_actionPerformed(ActionEvent e) {
new tjxjxx();
Log log = new Log();
log.addLog("\r\r", "浏览了添加学籍模块!");
log.closeStream();
}
void xgxj_actionPerformed(ActionEvent e) {
new xgxjxx();
Log log = new Log();
log.addLog("\r\r", "浏览了修改学籍模块!");
log.closeStream();
}
void cxxj_actionPerformed(ActionEvent e) {
new cxxj();
Log log = new Log();
log.addLog("\r\r", "浏览了查询学籍模块!");
log.closeStream();
}
void tjkc_actionPerformed(ActionEvent e) {
new tjkcxx();
Log log = new Log();
log.addLog("\r\r", "浏览了添课程信息模块!");
log.closeStream();
}
void llyh_actionPerformed(ActionEvent e) {
new scanuser();
Log log = new Log();
log.addLog("\r\r", "浏览了用户模块!");
log.closeStream();
}
void jMenuItem1_actionPerformed(ActionEvent e) {
new xiugaimima();
Log log = new Log();
log.addLog("\r\r", "浏览了修改密码模块!");
log.closeStream();
}
void xgkc_actionPerformed(ActionEvent e) {
new xgkcxx();
Log log = new Log();
log.addLog("\r\r", "浏览了修改课程模块!");
log.closeStream();
}
void sznj_actionPerformed(ActionEvent e) {
new sznjkc();
Log log = new Log();
log.addLog("\r\r", "浏览了设置年级课程模块!");
log.closeStream();
}
void tjcj_actionPerformed(ActionEvent e) {
new addresult();
Log log = new Log();
log.addLog("\r\r", "浏览了添加成绩模块!");
log.closeStream();
}
void xgcj_actionPerformed(ActionEvent e) {
new xgcj();
Log log = new Log();
log.addLog("\r\r", "浏览了修改成绩模块!");
log.closeStream();
}
void cxcj_actionPerformed(ActionEvent e) {
new sacnresult();
Log log = new Log();
log.addLog("\r\r", "浏览了浏览模块!");
log.closeStream();
}
void jMenuItem4_actionPerformed(ActionEvent e) {
ImageIcon icon2 = new ImageIcon("images" + File.separator+"forest.jpg");
jLabel1.setIcon(icon2);
contentPane.add(jLabel1, null);
}
void jMenuItem2_actionPerformed(ActionEvent e) {
ImageIcon icon2 = new ImageIcon("images" + File.separator+"jgs.jpg");
jLabel1.setIcon(icon2);
contentPane.add(jLabel1, null);
}
void jMenuItem5_actionPerformed(ActionEvent e) {
ImageIcon icon2 = new ImageIcon("images" + File.separator+"shuijing.jpg");
jLabel1.setIcon(icon2);
contentPane.add(jLabel1, null);
}
void jMenuItem3_actionPerformed(ActionEvent e) {
ImageIcon icon2 = new ImageIcon("images" + File.separator+"Autumn.jpg");
jLabel1.setIcon(icon2);
contentPane.add(jLabel1, null);
}
void jMenu1_actionPerformed(ActionEvent e) {
}
void jMenuItem7_actionPerformed(ActionEvent e) {
//AudioPlayer.player.start(as);
jMenuItem7.setEnabled(false);
FileInputStream fileau = null;
try {
fileau = new FileInputStream("music" + File.separator+"lzlh.mid");
}
catch (FileNotFoundException ex) {
}
try {as = new AudioStream(fileau);
AudioPlayer.player.start(as);
// System.out.println("添加音乐成功1");
}
catch (Exception e1) {
e1.printStackTrace();
}
}
void jMenuItem6_actionPerformed(ActionEvent e) {
AudioPlayer.player.stop(as);
jMenuItem7.setEnabled(true);
}
}
class mainFrame_jMenuHelpAbout_ActionAdapter
implements ActionListener {//监听
mainFrame adaptee;
mainFrame_jMenuHelpAbout_ActionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuHelpAbout_actionPerformed(e);
}
}
class mainFrame_adduser_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_adduser_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.adduser_actionPerformed(e);
}
}
class mainFrame_tjbj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_tjbj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tjbj_actionPerformed(e);
}
}
class mainFrame_exit_mouseAdapter
extends java.awt.event.MouseAdapter {
mainFrame adaptee;
mainFrame_exit_mouseAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
}
class mainFrame_xgbj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xgbj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xgbj_actionPerformed(e);
}
}
class mainFrame_exit_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_exit_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.exit_actionPerformed(e);
}
}
class mainFrame_xjgl_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xjgl_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xjgl_actionPerformed(e);
}
}
class mainFrame_tjxj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_tjxj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tjxj_actionPerformed(e);
}
}
class mainFrame_xgxj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xgxj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xgxj_actionPerformed(e);
}
}
class mainFrame_cxxj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_cxxj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.cxxj_actionPerformed(e);
}
}
class mainFrame_tjkc_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_tjkc_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tjkc_actionPerformed(e);
}
}
class mainFrame_llyh_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_llyh_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.llyh_actionPerformed(e);
}
}
class mainFrame_jMenuItem1_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem1_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem1_actionPerformed(e);
}
}
class mainFrame_xgkc_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xgkc_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xgkc_actionPerformed(e);
}
}
class mainFrame_sznj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_sznj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.sznj_actionPerformed(e);
}
}
class mainFrame_tjcj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_tjcj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tjcj_actionPerformed(e);
}
}
class mainFrame_xgcj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xgcj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xgcj_actionPerformed(e);
}
}
class mainFrame_cxcj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_cxcj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.cxcj_actionPerformed(e);
}
}
class mainFrame_login_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_login_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.login_actionPerformed(e);
}
}
class mainFrame_jMenuItem4_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem4_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem4_actionPerformed(e);
}
}
class mainFrame_jMenuItem2_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem2_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem2_actionPerformed(e);
}
}
class mainFrame_jMenuItem5_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem5_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem5_actionPerformed(e);
}
}
class mainFrame_jMenuItem3_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem3_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem3_actionPerformed(e);
}
}
class mainFrame_jMenu1_actionAdapter implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenu1_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenu1_actionPerformed(e);
}
}
class mainFrame_jMenuItem7_actionAdapter implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem7_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem7_actionPerformed(e);
}
}
class mainFrame_jMenuItem6_actionAdapter implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem6_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem6_actionPerformed(e);
}
}
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import javax.swing.UIManager;
import java.awt.Toolkit;
import java.awt.Canvas;
import java.awt.Dimension;
import java.io.FileInputStream;
import sun.audio.AudioStream;
import sun.audio.*;
import java.io.*;
//导入包下的所有class类和接口
public class mainFrame
extends JFrame {//继承父类
JPanel contentPane;
String user1;
int power;
Statement ps;
ResultSet rs;
Connection con;
String url;
String username;
JMenuBar jMenuBar1 = new JMenuBar();//新建一个水平菜单栏
JMenu jMenuFile = new JMenu();//菜单(系统)
JMenu jMenuHelp = new JMenu();//新建一个菜单,(帮助)
JMenuItem jMenuHelpAbout = new JMenuItem();//新建一个菜单项00关于00
JMenuItem adduser = new JMenuItem();//菜单项 ,,00添加用户00
JMenu xjgl = new JMenu();//菜单,(学籍管理)
JMenuItem cxxj = new JMenuItem();//菜单项,00查询学籍信息00
JMenuItem xgxj = new JMenuItem();//菜单项,00修改学籍信息00
JMenuItem tjxj = new JMenuItem();//菜单项,00添加学籍信息00
JMenu bjgl = new JMenu();//菜单(班级管理)
JMenuItem xgbj = new JMenuItem();//菜单项,00修改班级信息00
JMenuItem tjbj = new JMenuItem();//菜单项,00添加班级信息00
JMenu kcsz = new JMenu();//菜单(课程设置)
JMenuItem sznj = new JMenuItem();//菜单项,00设置年级课程00
JMenuItem xgkc = new JMenuItem();//菜单项,00修改课程信息00
JMenuItem tjkc = new JMenuItem();//菜单项,00添加课程信息00
JMenu cjgl = new JMenu();//菜单(成绩管理)
JMenuItem tjcj = new JMenuItem();//菜单项,00添加成绩信息00
ImageIcon icon = new ImageIcon("images" + File.separator+"a.jpg");//一个接口连接加载图片
JLabel jLabel1 = new JLabel(icon, JLabel.CENTER);
JMenuItem xgcj = new JMenuItem();//00修改成绩00
JMenuItem cxcj = new JMenuItem();//菜单项,00查询成绩信息00
JMenuItem exit = new JMenuItem();//菜单项,00退出00
JMenuItem jMenuItem1 = new JMenuItem();//菜单项,00修改密码00
JMenuItem llyh = new JMenuItem();//菜单项,00浏览用户00
JMenuItem login = new JMenuItem();//菜单项,00用户登陆00
JMenu ghbj = new JMenu();//更换背景
JMenuItem jMenuItem2 = new JMenuItem();//菜单项,00南山00
JMenuItem jMenuItem3 = new JMenuItem();//菜单项,00红叶00
JMenuItem jMenuItem4 = new JMenuItem();//菜单项,00森林00
JMenuItem jMenuItem5 = new JMenuItem();//菜单项,00水晶00
FileInputStream fileau;// = new FileInputStream("lzlh.mid");
AudioStream as;
JMenu jMenu1 = new JMenu();//背景音乐
JMenuItem jMenuItem6 = new JMenuItem();//关闭
JMenuItem jMenuItem7 = new JMenuItem();//打开
public mainFrame() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
}
//Component initialization分量初始化
private void jbInit() throws Exception {
contentPane = (JPanel)this.getContentPane();
contentPane.setLayout(null);
//this.setSize(new Dimension(800, 600));
this.setResizable(false);
this.setTitle("河南省轻工业学校学生学籍管理系统");
jMenuFile.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuFile.setForeground(Color.black);
jMenuFile.setText(" 系统 ");
jMenuHelp.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuHelp.setText(" 帮助 ");
jMenuHelpAbout.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuHelpAbout.setText("关于");
jMenuHelpAbout.addActionListener(new mainFrame_jMenuHelpAbout_ActionAdapter(this));
adduser.setFont(new java.awt.Font("Dialog", 0, 15));
adduser.setText("添加用户");
adduser.addActionListener(new mainFrame_adduser_actionAdapter(this));
xjgl.setFont(new java.awt.Font("Dialog", 0, 15));
xjgl.setText(" 学籍管理 ");
xjgl.addActionListener(new mainFrame_xjgl_actionAdapter(this));
bjgl.setFont(new java.awt.Font("Dialog", 0, 15));
bjgl.setText(" 班级管理 ");
kcsz.setFont(new java.awt.Font("Dialog", 0, 15));
kcsz.setText(" 课程设置 ");
cjgl.setFont(new java.awt.Font("Dialog", 0, 15));
cjgl.setText("成绩管理");
tjcj.setFont(new java.awt.Font("Dialog", 0, 15));
tjcj.setText("添加成绩信息");
tjcj.addActionListener(new mainFrame_tjcj_actionAdapter(this));
tjxj.setFont(new java.awt.Font("Dialog", 0, 15));
tjxj.setForeground(Color.black);
tjxj.setText("添加学籍信息");
tjxj.addActionListener(new mainFrame_tjxj_actionAdapter(this));
// jMenuItem9.addActionListener(new mainFrame_jMenuItem9_actionAdapter(this));
xgxj.setFont(new java.awt.Font("Dialog", 0, 15));
xgxj.setText("修改学籍信息");
xgxj.addActionListener(new mainFrame_xgxj_actionAdapter(this));
cxxj.setFont(new java.awt.Font("Dialog", 0, 15));
cxxj.setText("查询学籍信息");
cxxj.addActionListener(new mainFrame_cxxj_actionAdapter(this));
// jMenuItem3.addActionListener(new mainFrame_jMenuItem3_actionAdapter(this));
tjbj.setFont(new java.awt.Font("Dialog", 0, 15));
tjbj.setText("添加班级信息");
tjbj.addActionListener(new mainFrame_tjbj_actionAdapter(this));
xgbj.setFont(new java.awt.Font("Dialog", 0, 15));
xgbj.setText("修改班级信息");
xgbj.addActionListener(new mainFrame_xgbj_actionAdapter(this));
tjkc.setFont(new java.awt.Font("Dialog", 0, 15));
tjkc.setText("添加课程信息");
tjkc.addActionListener(new mainFrame_tjkc_actionAdapter(this));
xgkc.setFont(new java.awt.Font("Dialog", 0, 15));
xgkc.setText("修改课程信息");
xgkc.addActionListener(new mainFrame_xgkc_actionAdapter(this));
sznj.setFont(new java.awt.Font("Dialog", 0, 15));
sznj.setText("设置年级课程");
sznj.addActionListener(new mainFrame_sznj_actionAdapter(this));
jLabel1.setText("");
jLabel1.setBounds(new Rectangle(1, 0, 800, 603));
xgcj.setFont(new java.awt.Font("Dialog", 0, 15));
xgcj.setText("修改成绩信息");
xgcj.addActionListener(new mainFrame_xgcj_actionAdapter(this));
cxcj.setFont(new java.awt.Font("Dialog", 0, 15));
cxcj.setText("查询成绩信息");
cxcj.addActionListener(new mainFrame_cxcj_actionAdapter(this));
exit.setFont(new java.awt.Font("Dialog", 0, 15));
exit.setText("退出");
exit.addActionListener(new mainFrame_exit_actionAdapter(this));
exit.addMouseListener(new mainFrame_exit_mouseAdapter(this));
jMenuItem1.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem1.setText("修改密码");
jMenuItem1.addActionListener(new mainFrame_jMenuItem1_actionAdapter(this));
llyh.setFont(new java.awt.Font("Dialog", 0, 15));
llyh.setText("浏览用户");
llyh.addActionListener(new mainFrame_llyh_actionAdapter(this));
login.setFont(new java.awt.Font("Dialog", 0, 15));
login.setText("用户登录");
login.addActionListener(new mainFrame_login_actionAdapter(this));
ghbj.setFont(new java.awt.Font("Dialog", 0, 15));
ghbj.setText("更换背景");
jMenuItem4.setFont(new java.awt.Font("SansSerif", 0, 15));
jMenuItem4.setHorizontalAlignment(SwingConstants.LEFT);
jMenuItem4.setHorizontalTextPosition(SwingConstants.LEFT);
jMenuItem4.setText("森林");
jMenuItem4.addActionListener(new mainFrame_jMenuItem4_actionAdapter(this));
jMenuItem3.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem3.setText("红叶");
jMenuItem3.addActionListener(new mainFrame_jMenuItem3_actionAdapter(this));
jMenuItem2.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem2.setText("南山");
jMenuItem2.addActionListener(new mainFrame_jMenuItem2_actionAdapter(this));
jMenuItem5.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem5.setText("水晶");
jMenuItem5.addActionListener(new mainFrame_jMenuItem5_actionAdapter(this));
jMenu1.addActionListener(new mainFrame_jMenu1_actionAdapter(this));
jMenu1.setFont(new java.awt.Font("Dialog", 0, 15));
jMenu1.setText("背景音乐");
jMenuItem7.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem7.setText("打开");
jMenuItem7.addActionListener(new mainFrame_jMenuItem7_actionAdapter(this));
jMenuItem6.setFont(new java.awt.Font("Dialog", 0, 15));
jMenuItem6.setText("关闭");
jMenuItem6.addActionListener(new mainFrame_jMenuItem6_actionAdapter(this));
jMenuFile.add(login);
jMenuFile.add(llyh);
jMenuFile.add(jMenuItem1);
jMenuFile.add(adduser);
jMenuFile.add(exit);
jMenuHelp.add(jMenuHelpAbout);
jMenuBar1.add(jMenuFile);
jMenuBar1.add(xjgl);
jMenuBar1.add(bjgl);
jMenuBar1.add(kcsz);
jMenuBar1.add(cjgl);
jMenuBar1.add(ghbj);
jMenuBar1.add(jMenu1);
jMenuBar1.add(jMenuHelp);
fileau = new FileInputStream("music" + File.separator+"lzlh.mid");
as = new AudioStream(fileau);
xjgl.add(tjxj);
xjgl.add(xgxj);
xjgl.add(cxxj);
bjgl.add(tjbj);
bjgl.add(xgbj);
kcsz.add(tjkc);
kcsz.add(xgkc);
kcsz.add(sznj);
cjgl.add(tjcj);
cjgl.add(xgcj);
cjgl.add(cxcj);
contentPane.add(jLabel1, null);
ghbj.add(jMenuItem4);
ghbj.add(jMenuItem3);
ghbj.add(jMenuItem2);
ghbj.add(jMenuItem5);
jMenu1.add(jMenuItem7);
jMenu1.add(jMenuItem6);
this.setJMenuBar(jMenuBar1);
xjgl.setEnabled(false);
bjgl.setEnabled(false);
kcsz.setEnabled(false);
cjgl.setEnabled(false);
jMenuFile.setEnabled(true);
llyh.setEnabled(false);
adduser.setEnabled(false);
jMenuItem7.setEnabled(false);
this.setBounds(100, 100, 800, 600);
this.setVisible(true);
try {
AudioPlayer.player.start(as);
//System.out.println("添加音乐成功");
}
catch (Exception e1) {
e1.printStackTrace();
}
}
public static void main(String args[]) {
mainFrame main = new mainFrame();
}
public void jMenuFileExit_actionPerformed(ActionEvent e) {
System.exit(0);
Log log = new Log();
log.addLog("\r\r", username + "退出了系统!");
log.closeStream();
}
//Help | About action performed
public void jMenuHelpAbout_actionPerformed(ActionEvent e) {
new about();
}
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
jMenuFileExit_actionPerformed(null);
}
}
void adduser_actionPerformed(ActionEvent e) {
new adduser();
Log log = new Log();
log.addLog("\r\r", username + "浏览了添加用户模块!");
log.closeStream();
}
void xgmm_actionPerformed(ActionEvent e) {
new xiugaimima();
Log log = new Log();
log.addLog("\r\r", username + "浏览了修改密码模块!");
log.closeStream();
}
void tjbj_actionPerformed(ActionEvent e) {
new addxj();
Log log = new Log();
log.addLog("\r\r", username + "浏览了添加学籍模块");
log.closeStream();
}
void exit_actionPerformed(ActionEvent e) {
Log log = new Log();
log.addLog("\r\r", username + "退出了系统");
log.closeStream();
System.exit(0);
}
void xgbj_actionPerformed(ActionEvent e) {
new xgbj();
}
void xjgl_actionPerformed(ActionEvent e) {
}
void login_actionPerformed(ActionEvent e) {
username = JOptionPane.showInputDialog(this, "请输入用户名");
String pwd = JOptionPane.showInputDialog(this, "请输入密码");
if (! (username == null && pwd == null)) {
try {//连接数据库,验证用户
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//连接数据库驱动
Connection con = DriverManager.getConnection(
"jdbc:odbc:lee",
"sa", "123");
ps = con.createStatement(ResultSet.
TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
try {
rs = ps.executeQuery("select * from users where username='" +
username + "' "); //读取数据库
if (!rs.next())
{
Log log = new Log();
log.addLog("\r\r", username + "用户试图登录系统,失败!");
log.closeStream();
JOptionPane.showMessageDialog(null, "不存在此用户!");
}
else if (! (rs.getString("pwd").trim().equals(pwd))) {
JOptionPane.showMessageDialog(null, "密码错误!");
Log log = new Log();
log.addLog("\r\r", username + "用户试图登录系统,失败!");
log.closeStream();
}
else {
if (rs.getString("power").trim().equals("系统管理员")) {
xjgl.setEnabled(true);
bjgl.setEnabled(true);
kcsz.setEnabled(true);
cjgl.setEnabled(true);
jMenuFile.setEnabled(true);
llyh.setEnabled(true);
adduser.setEnabled(true);
Log log = new Log();
log.addLog("\r\r", username + "(系统管理员)登录系统");
log.closeStream();
}
else {
cjgl.setEnabled(true);
xjgl.setEnabled(true);
xgcj.setEnabled(false);
tjcj.setEnabled(false);
xgxj.setEnabled(false);
tjxj.setEnabled(false);
Log log = new Log();
log.addLog("\r\r", username + "(普通用户)登录系统");
log.closeStream();
}
}
}
catch (SQLException sqle) {
String error = sqle.getMessage();
JOptionPane.showMessageDialog(null, error);
sqle.printStackTrace();
}
}
catch (Exception err) {
// err.getMessage();
Log log = new Log();
log.addLog("\r\r", "数据库连接错误!");
log.closeStream();
String error = err.getMessage();
JOptionPane.showMessageDialog(null, error);
}
}
}
void tjxj_actionPerformed(ActionEvent e) {
new tjxjxx();
Log log = new Log();
log.addLog("\r\r", "浏览了添加学籍模块!");
log.closeStream();
}
void xgxj_actionPerformed(ActionEvent e) {
new xgxjxx();
Log log = new Log();
log.addLog("\r\r", "浏览了修改学籍模块!");
log.closeStream();
}
void cxxj_actionPerformed(ActionEvent e) {
new cxxj();
Log log = new Log();
log.addLog("\r\r", "浏览了查询学籍模块!");
log.closeStream();
}
void tjkc_actionPerformed(ActionEvent e) {
new tjkcxx();
Log log = new Log();
log.addLog("\r\r", "浏览了添课程信息模块!");
log.closeStream();
}
void llyh_actionPerformed(ActionEvent e) {
new scanuser();
Log log = new Log();
log.addLog("\r\r", "浏览了用户模块!");
log.closeStream();
}
void jMenuItem1_actionPerformed(ActionEvent e) {
new xiugaimima();
Log log = new Log();
log.addLog("\r\r", "浏览了修改密码模块!");
log.closeStream();
}
void xgkc_actionPerformed(ActionEvent e) {
new xgkcxx();
Log log = new Log();
log.addLog("\r\r", "浏览了修改课程模块!");
log.closeStream();
}
void sznj_actionPerformed(ActionEvent e) {
new sznjkc();
Log log = new Log();
log.addLog("\r\r", "浏览了设置年级课程模块!");
log.closeStream();
}
void tjcj_actionPerformed(ActionEvent e) {
new addresult();
Log log = new Log();
log.addLog("\r\r", "浏览了添加成绩模块!");
log.closeStream();
}
void xgcj_actionPerformed(ActionEvent e) {
new xgcj();
Log log = new Log();
log.addLog("\r\r", "浏览了修改成绩模块!");
log.closeStream();
}
void cxcj_actionPerformed(ActionEvent e) {
new sacnresult();
Log log = new Log();
log.addLog("\r\r", "浏览了浏览模块!");
log.closeStream();
}
void jMenuItem4_actionPerformed(ActionEvent e) {
ImageIcon icon2 = new ImageIcon("images" + File.separator+"forest.jpg");
jLabel1.setIcon(icon2);
contentPane.add(jLabel1, null);
}
void jMenuItem2_actionPerformed(ActionEvent e) {
ImageIcon icon2 = new ImageIcon("images" + File.separator+"jgs.jpg");
jLabel1.setIcon(icon2);
contentPane.add(jLabel1, null);
}
void jMenuItem5_actionPerformed(ActionEvent e) {
ImageIcon icon2 = new ImageIcon("images" + File.separator+"shuijing.jpg");
jLabel1.setIcon(icon2);
contentPane.add(jLabel1, null);
}
void jMenuItem3_actionPerformed(ActionEvent e) {
ImageIcon icon2 = new ImageIcon("images" + File.separator+"Autumn.jpg");
jLabel1.setIcon(icon2);
contentPane.add(jLabel1, null);
}
void jMenu1_actionPerformed(ActionEvent e) {
}
void jMenuItem7_actionPerformed(ActionEvent e) {
//AudioPlayer.player.start(as);
jMenuItem7.setEnabled(false);
FileInputStream fileau = null;
try {
fileau = new FileInputStream("music" + File.separator+"lzlh.mid");
}
catch (FileNotFoundException ex) {
}
try {as = new AudioStream(fileau);
AudioPlayer.player.start(as);
// System.out.println("添加音乐成功1");
}
catch (Exception e1) {
e1.printStackTrace();
}
}
void jMenuItem6_actionPerformed(ActionEvent e) {
AudioPlayer.player.stop(as);
jMenuItem7.setEnabled(true);
}
}
class mainFrame_jMenuHelpAbout_ActionAdapter
implements ActionListener {//监听
mainFrame adaptee;
mainFrame_jMenuHelpAbout_ActionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuHelpAbout_actionPerformed(e);
}
}
class mainFrame_adduser_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_adduser_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.adduser_actionPerformed(e);
}
}
class mainFrame_tjbj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_tjbj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tjbj_actionPerformed(e);
}
}
class mainFrame_exit_mouseAdapter
extends java.awt.event.MouseAdapter {
mainFrame adaptee;
mainFrame_exit_mouseAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
}
class mainFrame_xgbj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xgbj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xgbj_actionPerformed(e);
}
}
class mainFrame_exit_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_exit_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.exit_actionPerformed(e);
}
}
class mainFrame_xjgl_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xjgl_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xjgl_actionPerformed(e);
}
}
class mainFrame_tjxj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_tjxj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tjxj_actionPerformed(e);
}
}
class mainFrame_xgxj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xgxj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xgxj_actionPerformed(e);
}
}
class mainFrame_cxxj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_cxxj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.cxxj_actionPerformed(e);
}
}
class mainFrame_tjkc_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_tjkc_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tjkc_actionPerformed(e);
}
}
class mainFrame_llyh_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_llyh_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.llyh_actionPerformed(e);
}
}
class mainFrame_jMenuItem1_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem1_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem1_actionPerformed(e);
}
}
class mainFrame_xgkc_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xgkc_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xgkc_actionPerformed(e);
}
}
class mainFrame_sznj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_sznj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.sznj_actionPerformed(e);
}
}
class mainFrame_tjcj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_tjcj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tjcj_actionPerformed(e);
}
}
class mainFrame_xgcj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_xgcj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.xgcj_actionPerformed(e);
}
}
class mainFrame_cxcj_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_cxcj_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.cxcj_actionPerformed(e);
}
}
class mainFrame_login_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_login_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.login_actionPerformed(e);
}
}
class mainFrame_jMenuItem4_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem4_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem4_actionPerformed(e);
}
}
class mainFrame_jMenuItem2_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem2_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem2_actionPerformed(e);
}
}
class mainFrame_jMenuItem5_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem5_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem5_actionPerformed(e);
}
}
class mainFrame_jMenuItem3_actionAdapter
implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem3_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem3_actionPerformed(e);
}
}
class mainFrame_jMenu1_actionAdapter implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenu1_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenu1_actionPerformed(e);
}
}
class mainFrame_jMenuItem7_actionAdapter implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem7_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem7_actionPerformed(e);
}
}
class mainFrame_jMenuItem6_actionAdapter implements java.awt.event.ActionListener {
mainFrame adaptee;
mainFrame_jMenuItem6_actionAdapter(mainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem6_actionPerformed(e);
}
}