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

📄 mnuhandler.java~24~

📁 可以对名片进行增删改查,用户管理包括增删改查等,对名片查询时可以模糊查询
💻 JAVA~24~
字号:
package card;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

/**
 * <p>Title: Card</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class mnuHandler implements ActionListener{
    SelectFrame sf;
    UserManagerDialog ud;
    typeDialog td;
    cardDialog cd;
    SelectDialog sd;

    public mnuHandler(SelectFrame f) {
        this.sf=f;
    }

    public void actionPerformed(ActionEvent e) {
        if(e.getActionCommand()=="pwd"){//修改密码
            ud=new UserManagerDialog();
            ud.setBounds(400,200,300,300);
            ud.setVisible(true);
        }
        if(e.getActionCommand()=="exit"){//退出
        System.exit(0);
    }
        if(e.getActionCommand()=="addtype"){//增加类别
            td=new typeDialog(sf,"增加类别",true);
            td.btndele.setVisible(false);
            td.btnupdate.setVisible(false);
            td.setBounds(350,150,400,400);

            td.setVisible(true);


        }
        if(e.getActionCommand()=="updatetype"){//修改类别
            td=new typeDialog();
           td.btndele.setVisible(false);
           td.btncreate.setVisible(false);
           td.setBounds(350,150,400,400);
           td.setVisible(true);


        }
        if(e.getActionCommand()=="deltype"){
            td=new typeDialog();
           td.btncreate.setVisible(false);
           td.btnupdate.setVisible(false);
          td.setBounds(350,150,400,400);
           td.setVisible(true);


        }
        if(e.getActionCommand()=="addcard"){
            cd=new cardDialog();
          cd.btnupdate.setVisible(false);
            cd.btnselect.setVisible(false);
            cd.setBounds(350,150,550,550);
            cd.setVisible(true);
            new SelectFrameHandler(sf);
        }
        if(e.getActionCommand()=="select"){
            sd=new SelectDialog(sf,"多项查询",true);
           sd.setBounds(350,150,550,550);
           sd.setVisible(true);
            SelectFrameHandler sfh=new SelectFrameHandler(sf);
           sfh.updateinfo(Static.getSQL());


        }
        if(e.getActionCommand()=="who"){
            Static.getTodayBirthdayDialog();
        }
    }
}

⌨️ 快捷键说明

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