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

📄 systemframe1.java~24~

📁 一个功能强大的图书管理系统,是个人版,适合学习swing的初学者阅读.
💻 JAVA~24~
📖 第 1 页 / 共 4 页
字号:


        jmiBookSort.setFont(new java.awt.Font("Default", Font.PLAIN, 12));
        jmiBookSort.setText("图书分类设置");

        jmiReaderSort.setFont(new java.awt.Font("Default", Font.PLAIN, 12));
        jmiReaderSort.setText("读者信息设置");

        jmiBookstackSort.setFont(new java.awt.Font("Default", Font.PLAIN, 12));
        jmiBookstackSort.setText("书架编号管理");
        jmiHelpText.setFont(new java.awt.Font("Default", Font.PLAIN, 12));
        jmiHelpText.setText("帮助主题");
        jmiHelpText.addActionListener(new
                                      SystemFrame1_jmiHelpText_actionAdapter(this));
        jmiHelpAuthor.setFont(new java.awt.Font("Default", Font.PLAIN, 12));
        jmiHelpAuthor.setText("关于我们");
        //工具条大小
        jToolBar2.setBounds(new Rectangle(75, 0,578, 56));
        jToolBar3.setBounds(new Rectangle(653, 0, 195, 56));
        jToolBar1.setBounds(new Rectangle(0, 0, 75, 56));



        readerSystemPanel.setBounds(new Rectangle(30, 154, 790, 535));
        booksInfoSystemPanel.setBounds(new Rectangle(47, 171, 790, 535));
        jMizzflsz.setFont(new java.awt.Font("Default", Font.PLAIN, 12));
        jMizzflsz.setText("杂志分类设置");
        sysjPanel.setBounds(3,60,this.getWidth()-8,this.getHeight()-5);
        sysjPanel.setLayout(null);
        jLtu.setBorder(null);
        jLtu.setHorizontalAlignment(SwingConstants.CENTER);
        jLtu.setBounds(new Rectangle(0, 0, 372, 262));
        jLtu.setSize(sysjPanel.getSize());
        sysjPanel.setBorder(null);
 //       systemPanel1.setBounds(3,60,this.getWidth()-8,this.getHeight()-5);
  //      dailyPperationSystemPanel.setBounds(new Rectangle(38, 150, 790, 535));
        contentPane.setFont(new java.awt.Font("宋体", Font.PLAIN, 11));
        contentPane.addHierarchyBoundsListener(new
                SystemFrame1_contentPane_hierarchyBoundsAdapter(this));
        contentPane.addComponentListener(new
                SystemFrame1_contentPane_componentAdapter(this));

        //底边
        jPanelSystemBottom.setBorder(BorderFactory.createEtchedBorder());
        //jPanelSystemBottom.setBounds(new Rectangle(3,sysjPanel.getY()+sysjPanel.getHeight(),this.getWidth(), 25));
        jPanelSystemBottom.setBounds(new Rectangle(3, this.getHeight()-90, this.getWidth()-8, 25));
        jPanelSystemBottom.setLayout(null);
        jPanelSystemBottom.setBackground(SystemColor.menu);
        jPanelSystemBottom.setVisible(true);
        jLabeljPanelSystemBottom2.setFont(new java.awt.Font("宋体", Font.PLAIN,14));
        jLabeljPanelSystemBottom2.setBorder(BorderFactory.createEtchedBorder());
        jLabeljPanelSystemBottom2.setText("登录人员:    ");
        jLabeljPanelSystemBottom2.setBounds(new Rectangle(260, this.getY()+2, 261, 23));
        jLabeljPanelSystemBottom1.setFont(new java.awt.Font("宋体", Font.PLAIN,14));
        jLabeljPanelSystemBottom1.setBorder(BorderFactory.createEtchedBorder());
        jLabeljPanelSystemBottom1.setText("版本更新时间: 2007-08-27");
        jLabeljPanelSystemBottom1.setBounds(new Rectangle(1, this.getY()+2, 254, 23));
        jLabeljPanelSystemBottom3.setFont(new java.awt.Font("宋体", Font.PLAIN,14));
        jLabeljPanelSystemBottom3.setBorder(BorderFactory.createEtchedBorder());
        jLabeljPanelSystemBottom3.setText(" 绿绦工作室制作  http:\\\\it995.siteem.com");
        jLabeljPanelSystemBottom3.setBounds(new Rectangle(527, this.getY()+2, 261, 23));
        jPanelSystemBottom.addComponentListener(new
                                                SystemFrame1_jPanelSystemBottom_componentAdapter(this));

        jMenuBar1.add(jmuSystem);
        jMenuBar1.add(jmuOperation);
        jmuOperation.addSeparator();
        jmuOperation.add(jmiBorrowBook);
        jmuOperation.add(jmiOverdueBook);
        jmuOperation.addSeparator();
        jmuOperation.add(jmiMagazine);
        jmuOperation.add(jmiOverdueMagazine);
        jMenuBar1.add(jmuReader);
        jmuReader.addSeparator();
        jmuReader.add(jmireaderFile);
        jmuReader.add(jmiReaderBorrowQuery);
        jMenuBar1.add(jmuBookSystem);
        jmuBookSystem.addSeparator();
        jmuBookSystem.add(jmiBookNumberDepot);
        jmuBookSystem.add(jmiBookLogout);
        jmuBookSystem.addSeparator();
        jmuBookSystem.add(jmiBookQuery);
        jmuBookSystem.add(jmiBookBorrowQuery);
        jmuBookSystem.addSeparator();
        jmuBookSystem.add(jmiBookDepotQuery);
        jmuBookSystem.add(jmiBookLogoutQuery);
        jMenuBar1.add(jmuMagazineSystem);
        jMenuBar1.add(jmDataSystem);
        jMenuBar1.add(jmuHlep);
        jmuHlep.addSeparator();
        jmuHlep.add(jmiHelpText);
        jmuHlep.add(jmiHelpAuthor);
        jmuSystem.addSeparator();
        jmuSystem.add(jmiLogin);
        jmuSystem.add(jmiPassword);
        jmuSystem.addSeparator();
        jmuSystem.add(jmiExit);
        jmuMagazineSystem.addSeparator();
        jmuMagazineSystem.add(jmiMagazineNumberDepot);
        jmuMagazineSystem.add(jmiMagazineLogout);
        jmuMagazineSystem.addSeparator();
        jmuMagazineSystem.add(jmiMagazineQuery);
        jmuMagazineSystem.add(jmiMagazineBorrowQuery);
        jmuMagazineSystem.addSeparator();
        jmuMagazineSystem.add(jmiMagazineDepotQuery);
        jmuMagazineSystem.add(jmiMagazineLogoutQuery);
        jmDataSystem.addSeparator();
        jmDataSystem.add(jmiOP);
        jmDataSystem.add(jmiSystemDataSetting);
        jmDataSystem.addSeparator();
        jmDataSystem.add(jMizzflsz);
        jmDataSystem.add(jmiBookSort);
        jmDataSystem.add(jmiReaderSort);
        jmDataSystem.addSeparator();
        jmDataSystem.add(jmiBookstackSort);
        jToolBar2.add(jBttsjy);
        jToolBar2.add(jBtyqts);
        jToolBar2.add(jBtqkjy);
        jToolBar2.add(jBtyqqk);
        jToolBar2.add(jBtdzgl);
        jToolBar2.add(jBttsbm);
        jToolBar2.add(jBttsjs);
        jToolBar2.add(jBtqkbm);
        jToolBar2.add(jBtqkjs);
        contentPane.add(jToolBar3);
        jToolBar3.add(jBtbzwd);
        jToolBar3.add(jBttcxt);
        contentPane.add(jToolBar1);
        jToolBar1.add(jBtxtdl);
        contentPane.add(jToolBar2);
        contentPane.add(magazineInfoSystemPanel);
        contentPane.add(sysjPanel);
        sysjPanel.add(jLtu);
        contentPane.add(systemPanel1);
        contentPane.add(readerSystemPanel);
        contentPane.add(booksInfoSystemPanel);
        contentPane.add(dailyPperationSystemPanel);
        contentPane.add(booksInfoChaxun);
        contentPane.add(readerChaXun);
        contentPane.add(yqtspanel);
        contentPane.add(yqqkPanel);
        contentPane.add(qkjyPanel);
        contentPane.add(magazinChaXun);


        jPanelSystemBottom.add(jLabeljPanelSystemBottom1);
        jPanelSystemBottom.add(jLabeljPanelSystemBottom2);
        jPanelSystemBottom.add(jLabeljPanelSystemBottom3);
        contentPane.add(jPanelSystemBottom);
       /*
        systemPanel1.setVisible(false);
        readerSystemPanel.setVisible(false);
        booksInfoSystemPanel.setVisible(false);
        dailyPperationSystemPanel.setVisible(false);
        magazineInfoSystemPanel.setVisible(false);
       */
         SystemFrame1.t=0;
        gengxin(sysjPanel);
        disp(false);
    }
    public void quan(int t)
    {
        switch(t){
             case 1:
                 disp(true);
                 break;
             case 2:
                 dispA(false);
                 dispB(true);
                 dispC(true);
                 break;
             case 3:
                 disp(false);
                 dispB(false);
                 dispC(true);
                 break;
             default :
                 disp(false);

        }
    }
    public void disp(boolean quanxian)
    {
        dispA(quanxian);
        dispB(quanxian);
        dispC(quanxian);
    }
    public void dispA(boolean quanxian)
    {
        jmiOP.setEnabled(quanxian);
        jmiSystemDataSetting.setEnabled(quanxian);
        jmiBookstackSort.setEnabled(quanxian);
        jmiReaderSort.setEnabled(quanxian);
        jmiBookSort.setEnabled(quanxian);
        jMizzflsz.setEnabled(quanxian);
    }
    public void dispB(boolean quanxian)
    {
        jBtqkbm.setEnabled(quanxian);
        jBtdzgl.setEnabled(quanxian);
        jBttsbm.setEnabled(quanxian);
        jmiBookNumberDepot.setEnabled(quanxian);
        jmiMagazineNumberDepot.setEnabled(quanxian);
        jmiMagazineLogout.setEnabled(quanxian);
        jmiBookLogout.setEnabled(quanxian);
        jmireaderFile.setEnabled(quanxian);
    }
    public void dispC(boolean quanxian)
    {
        jmiReaderBorrowQuery.setEnabled(quanxian);
        jmiOverdueMagazine.setEnabled(quanxian);
        jmiMagazine.setEnabled(quanxian);
        jmiOverdueBook.setEnabled(quanxian);
        jmiBorrowBook.setEnabled(quanxian);
        jmiPassword.setEnabled(quanxian);
        jmiMagazineBorrowQuery.setEnabled(quanxian);
        jmiMagazineQuery.setEnabled(quanxian);
        jmiBookLogoutQuery.setEnabled(quanxian);
        jmiBookDepotQuery.setEnabled(quanxian);
        jmiBookBorrowQuery.setEnabled(quanxian);
        jmiBookQuery.setEnabled(quanxian);
        jmiMagazineLogoutQuery.setEnabled(quanxian);
        jmiMagazineDepotQuery.setEnabled(quanxian);
        jBttsjy.setEnabled(quanxian);
        jBtyqts.setEnabled(quanxian);
        jBtqkjy.setEnabled(quanxian);
        jBtyqqk.setEnabled(quanxian);
        jBttsjs.setEnabled(quanxian);
        jBtqkjs.setEnabled(quanxian);

    }

    public void this_windowClosing(WindowEvent e) {
        systemClose();
    }

    public void jBttcxt_actionPerformed(ActionEvent e) {
        systemClose();
    }

    public void jmiExit_actionPerformed(ActionEvent e) {
        systemClose();
    }

    public void systemClose()
        {
            Object arry[] ={"关闭","取消"};
            int i= JOptionPane.showOptionDialog(this,"是否要关闭 图书借阅管理系统","系统关闭",JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE,null,arry,arry[0]);
            if(i==0)
            {
                db.myClose();
                System.exit(0);
            }
    }

    public void daxiao()
    {
        jPanelSystemBottom.setBounds(new Rectangle(3, this.getHeight()-90, this.getWidth()-10, 25));
        systemPanel1.setSize(this.getWidth()-8,this.getHeight()-152);
        readerSystemPanel.setSize(this.getWidth()-8,this.getHeight()-152);
        booksInfoSystemPanel.setSize(this.getWidth()-8,this.getHeight()-152);
        magazineInfoSystemPanel.setSize(this.getWidth()-8,this.getHeight()-152);
        dailyPperationSystemPanel.setSize(this.getWidth() - 8,this.getHeight()-152);
        booksInfoChaxun.setSize(this.getWidth() - 8,this.getHeight()-152);
        readerChaXun.setSize(this.getWidth() - 8,this.getHeight()-152);
        sysjPanel.setSize(this.getWidth()-8,this.getHeight()-152);
        yqtspanel.setSize(this.getWidth()-8,this.getHeight()-152);
        yqqkPanel.setSize(this.getWidth()-8,this.getHeight()-152);
        qkjyPanel.setSize(this.getWidth()-8,this.getHeight()-152);
        magazinChaXun.setSize(this.getWidth()-8,this.getHeight()-152);
        jLtu.setSize(sysjPanel.getSize());

    }



    public void jmiLogin_actionPerformed(ActionEvent e) {
        //  if(!LoginFrame1.dangqian ){

              SystemFrame1.t = 0;
              SystemFrame1.login = null;
              gengxin(sysjPanel);
              LoginFrame1 lg = new LoginFrame1(db);
              lg.setSize(360, 270);
              xianshi(lg);
        //  }
    }
    public void xianshi(Frame lg)
    {

      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();

    }


    public void this_windowGainedFocus(WindowEvent e) {
        if(LoginFrame1.oK && isLogin){
            gengxin(sysjPanel);
            quan(SystemFrame1.t);
            diban();
            isLogin = false;
        }
    }
    //底边信息更新
    public void diban()
    {
         Calendar date =  Calendar.getInstance();
         String yue=""+(date.get(Calendar.MONTH)+1);
         String ri =""+date.get(Calendar.DAY_OF_MONTH);
         if(yue.length()<2)
             yue="0"+yue;
         if(ri.length()<2)

⌨️ 快捷键说明

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