⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timeframe1.java~111~

📁 java语言做的教务管理系统
💻 JAVA~111~
📖 第 1 页 / 共 4 页
字号:
            int i = sql.executeUpdate();
            if (i > 0) {
                Lordmain obj = new Lordmain();
                Dimension screenSize = Toolkit.getDefaultToolkit().
                                       getScreenSize();
                obj.setSize(screenSize);
                obj.setLocation(0, 0);
                obj.setVisible(true);
                this.dispose();
            }
        } catch (Exception ex) {

        }
    }

    public void jMenuItem2_actionPerformed(ActionEvent e) {
        try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            Connection conn = DriverManager.getConnection("jdbc:odbc:studer");
            PreparedStatement sql = conn.prepareStatement(
                    "update go set Logoff=?,Appearance='离线' where useid= '" +
                    this.txtid.getText() + "'");
            sql.setString(1, this.txttime.getText());
            int i = sql.executeUpdate();
            if (i > 0) {
                Lordmain obj = new Lordmain();
                Dimension screenSize = Toolkit.getDefaultToolkit().
                                       getScreenSize();
                obj.setSize(screenSize);
                obj.setLocation(0, 0);
                obj.setVisible(true);
                this.dispose();
            }
        } catch (Exception ex) {

        }
    }

    public void jMenuItem15_actionPerformed(ActionEvent e) {
        System.exit(0);
    }

    public void btnclassadd_actionPerformed(ActionEvent e) {
        classadd obj = new classadd();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("添加班级信息");
    }

    public void btnclassselect_actionPerformed(ActionEvent e) {
        classselect obj = new classselect();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("查询班级信息");
    }

    public void btnstuadd_actionPerformed(ActionEvent e) {
        stuadd obj = new stuadd();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("添加学生信息");
    }

    public void btnstuselect_actionPerformed(ActionEvent e) {
        stuselect obj = new stuselect();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("查询学生信息");
    }

    public void btnremarkadd_actionPerformed(ActionEvent e) {
        remarkadd obj = new remarkadd();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("添加成绩信息");
    }

    public void btnremarkselect_actionPerformed(ActionEvent e) {
        remarkselect obj = new remarkselect();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("查询成绩信息");
    }

    public void jMenuItem3_actionPerformed(ActionEvent e) {
        stuadd obj = new stuadd();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("添加学生信息");
    }

    public void mnustudel_actionPerformed(ActionEvent e) {
        studel obj = new studel();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("删除学生信息");
    }

    public void jMenuItem7_actionPerformed(ActionEvent e) {
        classadd obj = new classadd();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("添加班级信息");
    }

    public void jMenuItem8_actionPerformed(ActionEvent e) {
        classdel obj = new classdel();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("删除班级信息");
    }

    public void jMenuItem9_actionPerformed(ActionEvent e) {
        classupdate obj = new classupdate();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("修改班级信息");
    }

    public void jMenuItem10_actionPerformed(ActionEvent e) {
        classselect obj = new classselect();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("查询班级信息");
    }

    public void mnustuupdate_actionPerformed(ActionEvent e) {
        stuupdate obj = new stuupdate();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("修改学生信息");
    }

    public void mnustuselect_actionPerformed(ActionEvent e) {
        stuselect obj = new stuselect();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("查询学生信息");
    }

    public void jMenuItem11_actionPerformed(ActionEvent e) {
        remarkadd obj = new remarkadd();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("添加成绩信息");
    }

    public void jMenuItem12_actionPerformed(ActionEvent e) {
        remarkdel obj = new remarkdel();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("删除成绩信息");
    }

    public void jMenuItem13_actionPerformed(ActionEvent e) {
        remarkupdate obj = new remarkupdate();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("修改成绩信息");
    }

    public void jMenuItem14_actionPerformed(ActionEvent e) {
        remarkselect obj = new remarkselect();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("查询成绩信息");
    }

    public void btngo_actionPerformed(ActionEvent e) {
        go obj = new go();
        obj.setSize(350, 200);
        obj.setModal(true);
        obj.setLocation(200, 200);
        obj.setVisible(true);
        this.txtid.setText(obj.txtid.getText());
    }

    public void mnusuperadd_actionPerformed(ActionEvent e) {
        superadd obj = new superadd();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("管理员用户操作");
    }

    public void btnallselect_actionPerformed(ActionEvent e) {
        allselect obj = new allselect();
        this.pnlLord.removeAll();
        this.pnlLord.add(obj);
        Dimension screenSize = Toolkit.getDefaultToolkit().
                               getScreenSize();
        obj.setSize(screenSize);
        obj.setLocation(0, 0);
        obj.setVisible(true);
        jLabel9.setText("简要查询成绩");
    }
}


class TimeFrame1_btnallselect_actionAdapter implements ActionListener {
    private TimeFrame1 adaptee;
    TimeFrame1_btnallselect_actionAdapter(TimeFrame1 adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.btnallselect_actionPerformed(e);
    }
}


class TimeFrame1_mnusuperadd_actionAdapter implements ActionListener {
    private TimeFrame1 adaptee;
    TimeFrame1_mnusuperadd_actionAdapter(TimeFrame1 adaptee) {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -