private void updateButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_updateButtonActionPerformed
        String empNum = empNo.getText();
        String fNam = fName.getText();
        String lNam = lName.getText();
        String jbTitle = (String)jobTitle.getSelectedItem();
        String regionAss = region.getText();
        String areaAss = area.getText();
        String branchAss = (String)branch.getSelectedItem();
        String hireDate = ((JTextField)dateHired.getDateEditor().getUiComponent()).getText();

        switch (jbTitle) {
            case "CEO/Head for Microfinance":
            if(!"".equals(empNum) && !"".equals(fNam) && !"".equals(lNam) && !"".equals(hireDate)){
                updateEmpInfo();
            }
            else{
                JOptionPane.showMessageDialog(null, "Please fill the required fields.");
            }
            break;
            case "MF Assistant":
            if(!"".equals(empNum) && !"".equals(fNam) && !"".equals(lNam) && !"".equals(hireDate)){
                updateEmpInfo();
            }
            else{
                JOptionPane.showMessageDialog(null, "Please fill the required fields.");
            }
            break;
            case "MF Regional Head":
            if(!"".equals(empNum) && !"".equals(fNam) && !"".equals(lNam) && !"".equals(regionAss) && !"".equals(hireDate)){
                updateEmpInfo();
            }
            else{
                JOptionPane.showMessageDialog(null, "Please fill the required fields.");
            }
            break;
            case "MF Manager":
            if(!"".equals(empNum) && !"".equals(fNam) && !"".equals(lNam) && !"".equals(regionAss) && !"".equals(areaAss) && !"".equals(hireDate)){
                updateEmpInfo();
            }
            else{
                JOptionPane.showMessageDialog(null, "Please fill the required fields.");
            }
            break;
            default:
            if(!"".equals(empNum) && !"".equals(fNam) && !"".equals(lNam) && !"".equals(regionAss) && !"".equals(areaAss) && !"".equals(branchAss) && !"".equals(hireDate)){
                updateEmpInfo();
            }
            else{
                JOptionPane.showMessageDialog(null, "Please fill the required fields.");
            }
            break;
        }
    }