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

📄 systemframe1.java~24~

📁 一个功能强大的图书管理系统,是个人版,适合学习swing的初学者阅读.
💻 JAVA~24~
📖 第 1 页 / 共 4 页
字号:
             ri="0"+ri;
         SystemFrame1.dateTime = ""+date.get(Calendar.YEAR)+yue+ri;
         String shijian=""+date.get(Calendar.YEAR)+"-"+yue+"-"+ri;
         jLabeljPanelSystemBottom1.setText("  版本更新时间: "+shijian);
         if(SystemFrame1.login==null)
             SystemFrame1.login = "没有登录";
         jLabeljPanelSystemBottom2.setText("  登录人员:    "+SystemFrame1.login);
         if(SystemFrame1.login.equals("没有登录"))
             SystemFrame1.login = null;


    }

    public void jBtxtdl_actionPerformed(ActionEvent e) {
      //  if(!LoginFrame1.dangqian ){
            SystemFrame1.t = 0;
            SystemFrame1.login = null;
            isLogin = true;
            LoginFrame1 lg = new LoginFrame1(db);
            LoginFrame1.dangqian = true;
            lg.setSize(360, 270);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            Dimension frameSize = lg.getSize();
            if (frameSize.height > screenSize.height) {
                frameSize.height = screenSize.height;
            }
            if (frameSize.width > screenSize.width) {
                frameSize.width = screenSize.width;
            }
            lg.setLocation((screenSize.width - frameSize.width) / 2,
                           (screenSize.height - frameSize.height) / 2);

            lg.show();
            //gengxin(sysjPanel);
     //   }
    }

    //界面的替换
    public void tihuan(JPanel a)
    {
        a.setBounds(3,60,this.getWidth()-8,this.getHeight()-152);
        gengxin(a);
    }
    //应用界面的替换
    public void jmiBookNumberDepot_actionPerformed(ActionEvent e) {
        tihuan(booksInfoSystemPanel);
    }

    public void jmiOP_actionPerformed(ActionEvent e) {
        tihuan(systemPanel1);
    }
    public void jmireaderFile_actionPerformed(ActionEvent e) {
       tihuan(readerSystemPanel);
   }
   public void jmiBorrowBook_actionPerformed(ActionEvent e) {
           tihuan(dailyPperationSystemPanel);
   }
   public void jmiMagazineNumberDepot_actionPerformed(ActionEvent e) {
           tihuan(magazineInfoSystemPanel);
    }

    //界面的显示
    public void gengxin(JPanel quangkou){
        sysjPanel.setVisible(false);
        readerChaXun.setVisible(false);
        readerSystemPanel.setVisible(false);
        booksInfoSystemPanel.setVisible(false);
        dailyPperationSystemPanel.setVisible(false);
        systemPanel1.setVisible(false);
        magazineInfoSystemPanel.setVisible(false);
        booksInfoChaxun.setVisible(false);
        yqtspanel.setVisible(false);
        yqqkPanel.setVisible(false);
        qkjyPanel.setVisible(false);
        magazinChaXun.setVisible(false);
        quangkou.setVisible(true);


    }

    public void jmiPassword_actionPerformed(ActionEvent e) {

        PassworFrame pass = new PassworFrame(db);
        pass.setSize(360, 320);
       xianshi(pass);

    }

    public void jPanelSystemBottom_componentResized(ComponentEvent e) {
        jLabeljPanelSystemBottom1.setBounds(new Rectangle(1,2,(this.getWidth()/4-1),23));
       jLabeljPanelSystemBottom2.setBounds(new Rectangle((this.getWidth()/4),2,(this.getWidth()/4)-1,23));
       jLabeljPanelSystemBottom3.setBounds(new Rectangle((this.getWidth()/2),2,(this.getWidth()/2)-10,23));

    }


    public void contentPane_componentResized(ComponentEvent e) {
        daxiao();
    }

    public void this_componentResized(ComponentEvent e) {
        daxiao();
    }

    public void contentPane_ancestorResized(HierarchyEvent e) {
        daxiao();

    }

    public void jBttsjy_actionPerformed(ActionEvent e) {
        tihuan(dailyPperationSystemPanel);
    }

    public void jBtqkjy_actionPerformed(ActionEvent e) {
        tihuan(qkjyPanel);
    }

    public void jBtyqts_actionPerformed(ActionEvent e) {
         tihuan(yqtspanel);
    }

    public void jBtyqqk_actionPerformed(ActionEvent e) {
        tihuan(yqqkPanel);
    }

    public void jBtdzgl_actionPerformed(ActionEvent e) {
        tihuan(readerSystemPanel);
    }

    public void jBttsbm_actionPerformed(ActionEvent e) {
        tihuan(booksInfoSystemPanel);
    }

    public void jBttsjs_actionPerformed(ActionEvent e) {
        tihuan(booksInfoChaxun);
    }

    public void jBtqkbm_actionPerformed(ActionEvent e) {
        tihuan(magazineInfoSystemPanel);
    }

    public void jBtqkjs_actionPerformed(ActionEvent e) {
        tihuan(magazinChaXun);
    }

    public void jmiOverdueBook_actionPerformed(ActionEvent e) {
        tihuan(yqtspanel);
    }

    public void jmiMagazine_actionPerformed(ActionEvent e) {
        tihuan(qkjyPanel);
    }

    public void jmiOverdueMagazine_actionPerformed(ActionEvent e) {
        tihuan(yqqkPanel);
    }

    public void jmiBookQuery_actionPerformed(ActionEvent e) {
        tihuan(booksInfoChaxun);
    }

    public void jmiBookLogout_actionPerformed(ActionEvent e) {
        tihuan(booksInfoSystemPanel);
    }

    public void jBtbzwd_actionPerformed(ActionEvent e) {
        Runtime r=Runtime.getRuntime();
        try
        {
            //打开可执行文件
             //r.exec("D:\\Work\\T19\\youxi\\youxi\\youxiW.exe");
             //打开chm文件
             r.exec("rundll32 url.dll,FileProtocolHandler file:../booksboeeowreadsystem/help.CHM");

         }
         catch(Exception ee)
         {
             ee.printStackTrace();
         }


     //   helpFrame.setSize(720,600);
      //  xianshi(helpFrame);


    }

    public void jmiHelpText_actionPerformed(ActionEvent e) {
       // helpFrame.setSize(720,600);
       // xianshi(helpFrame);
       Runtime r=Runtime.getRuntime();
       try
       {
           //打开可执行文件
            //r.exec("D:\\Work\\T19\\youxi\\youxi\\youxiW.exe");
            //打开chm文件
           r.exec("rundll32 url.dll,FileProtocolHandler file:../booksboeeowreadsystem/help.CHM");

        }
        catch(Exception ee)
        {
            ee.printStackTrace();
        }

    }

    public void jmiReaderBorrowQuery_actionPerformed(ActionEvent e) {
        gengxin(readerChaXun);
    }

    public void jmiMagazineQuery_actionPerformed(ActionEvent e) {
         tihuan(magazinChaXun);
    }



}


class SystemFrame1_jmiMagazineQuery_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jmiMagazineQuery_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class SystemFrame1_jmiReaderBorrowQuery_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jmiReaderBorrowQuery_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class SystemFrame1_jmiHelpText_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jmiHelpText_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class SystemFrame1_jBtbzwd_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jBtbzwd_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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



class SystemFrame1_jmiBookLogout_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jmiBookLogout_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class SystemFrame1_jmiBookQuery_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jmiBookQuery_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class SystemFrame1_jmiOverdueMagazine_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jmiOverdueMagazine_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class SystemFrame1_jmiMagazine_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jmiMagazine_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class SystemFrame1_jBtqkjs_actionAdapter implements ActionListener {
    private SystemFrame1 adaptee;
    SystemFrame1_jBtqkjs_actionAdapter(SystemFrame1 adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {

⌨️ 快捷键说明

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