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

📄 dailypperationsystempanel.java

📁 图书管理系统源代码,05年某人写的,还算不错
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
            if(isReader){
                String sql1 =
                        "select booksQuantity from readerType where typeName='" +
                        readerTypeNameTemp + "'";
                rs = readerDB.search(sql1);
                try {
                    if (rs.next()) {
                        readerNumTempMax = rs.getInt(1);
                        if (readerNumTempMax == readerNumTemp)
                            JOptionPane.showMessageDialog(null,
                                    "你的借书数量已经达到上限,请先归还", "警告",
                                    JOptionPane.WARNING_MESSAGE);
                    }
                    readerDB.myClose(1);
                } catch (SQLException ex) {
                    System.out.println(ex.toString());
                }
            }
        }
        else
        JOptionPane.showMessageDialog(null,"读者编号没有输入","信息不完整",JOptionPane.ERROR_MESSAGE);
    }

    public void jTxNumberG_mouseClicked(MouseEvent e) {
        borrowBooksNum();
    }

    public void jTxpurchaseMoneyD_mouseClicked(MouseEvent e) {
        borrowBooksNum();
    }

    public void btnReturnBooks_actionPerformed(ActionEvent e) {
        returnBooks();
    }

    public void jTpRightBottom_mouseClicked(MouseEvent e) {

            int index = jTpRightBottom.getTabCount();
           for(int i=0;i<jTpRightBottom.getTabCount();i++)
           {
               if(i== jTpRightBottom.getSelectedIndex()){
                   jTpRightBottom.setBackgroundAt(i,null );
                  //  jTpRightBottom.getComponent(jTpRightBottom.getSelectedIndex()).setBackground(null);
               }
               else
                   jTpRightBottom.setBackgroundAt( i,Color.LIGHT_GRAY );
           }

           // jTpRightBottom.getSelectedIndex();

           // jTpRightBottom.setBackgroundAt( jTpRightBottom.getSelectedIndex(),Color.blue );


    }

}


class DailyPperationSystemPanel_jTpRightBottom_mouseAdapter extends
        MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTpRightBottom_mouseAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTpRightBottom_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_btnReturnBooks_actionAdapter implements
        ActionListener {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_btnReturnBooks_actionAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

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


class DailyPperationSystemPanel_jTxpurchaseMoneyD_mouseAdapter extends
        MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTxpurchaseMoneyD_mouseAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTxpurchaseMoneyD_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_jTxNumberG_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTxNumberG_mouseAdapter(DailyPperationSystemPanel
            adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTxNumberG_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_jTxNumberX_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTxNumberX_mouseAdapter(DailyPperationSystemPanel
            adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTxNumberX_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_btnQueren_actionAdapter implements
        ActionListener {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_btnQueren_actionAdapter(DailyPperationSystemPanel
            adaptee) {
        this.adaptee = adaptee;
    }

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


class DailyPperationSystemPanel_jTxReaderNumD_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTxReaderNumD_mouseAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTxReaderNumD_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_jTxReaderNumX_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTxReaderNumX_mouseAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTxReaderNumX_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_jTxreaderNum_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTxreaderNum_mouseAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTxreaderNum_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_jTxReaderNumG_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTxReaderNumG_mouseAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTxReaderNumG_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_this_componentAdapter extends ComponentAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_this_componentAdapter(DailyPperationSystemPanel
            adaptee) {
        this.adaptee = adaptee;
    }

    public void componentResized(ComponentEvent e) {
        adaptee.this_componentResized(e);
    }
}


class DailyPperationSystemPanel_this_hierarchyBoundsAdapter extends
        HierarchyBoundsAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_this_hierarchyBoundsAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void ancestorResized(HierarchyEvent e) {
        adaptee.this_ancestorResized(e);
    }
}


class DailyPperationSystemPanel_jSpSystemPanel_componentAdapter extends
        ComponentAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jSpSystemPanel_componentAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void componentResized(ComponentEvent e) {
        adaptee.jSpSystemPanel_componentResized(e);
    }
}


class DailyPperationSystemPanel_jPanRight_componentAdapter extends
        ComponentAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jPanRight_componentAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void componentResized(ComponentEvent e) {
        adaptee.jPanRight_componentResized(e);
    }
}


class DailyPperationSystemPanel_jTxNumber_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTxNumber_mouseAdapter(DailyPperationSystemPanel
            adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTxNumber_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_btnReset_actionAdapter implements
        ActionListener {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_btnReset_actionAdapter(DailyPperationSystemPanel
            adaptee) {
        this.adaptee = adaptee;
    }

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


class DailyPperationSystemPanel_jTabRightTop_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTabRightTop_mouseAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTabRightTop_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_jTreBooks_mouseAdapter extends MouseAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jTreBooks_mouseAdapter(DailyPperationSystemPanel
            adaptee) {
        this.adaptee = adaptee;
    }

    public void mouseClicked(MouseEvent e) {
        adaptee.jTreBooks_mouseClicked(e);
    }
}


class DailyPperationSystemPanel_jPaneRightBottom_componentAdapter extends
        ComponentAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jPaneRightBottom_componentAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void componentResized(ComponentEvent e) {
        adaptee.jPaneRightBottom_componentResized(e);
    }
}




class DailyPperationSystemPanel_jScright_componentAdapter extends
        ComponentAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jScright_componentAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void componentResized(ComponentEvent e) {
        adaptee.jScright_componentResized(e);
    }
}


class DailyPperationSystemPanel_jScright_hierarchyBoundsAdapter extends
        HierarchyBoundsAdapter {
    private DailyPperationSystemPanel adaptee;
    DailyPperationSystemPanel_jScright_hierarchyBoundsAdapter(
            DailyPperationSystemPanel adaptee) {
        this.adaptee = adaptee;
    }

    public void ancestorResized(HierarchyEvent e) {
        adaptee.jScright_ancestorResized(e);
    }
}


⌨️ 快捷键说明

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