private void supervisorFieldItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_supervisorFieldItemStateChanged
        if(checker){
            if(supervisorField.getItemCount() == 0){

            }
            else if("".equals(supervisorField.getSelectedItem())){
                jLabel6.setEnabled(true);
                jLabel12.setEnabled(true);
                jLabel26.setEnabled(true);
                region.setEnabled(true);
                area.setEnabled(true);
                branch.setEnabled(true);
                region.setEditable(true);
                area.setEditable(true);
                branch.setEditable(true);
                region.setText("");
                area.setText("");
                initBranchAssField();
                branch.setSelectedItem("");
            }
            else{
                String empNum = emplNo.get(supervisorField.getSelectedIndex()-1);
                String sql = null;
                ResultSet rs = null;
                try{
                    sql = "select region,area,branch from Employee where empNo='" + empNum + "'";
                    conn = DBConnect.connect();
                    pst = conn.prepareStatement(sql);
                    rs= pst.executeQuery();
                    if(rs.next()){
                        region.setText(rs.getString("region"));
                        area.setText(rs.getString("area"));
                        branch.removeAllItems();
                        branch.addItem(rs.getString("branch"));
                        branch.setSelectedItem(rs.getString("branch"));
                    }
                }
                catch(Exception e){
                    JOptionPane.showMessageDialog(null, " ItemStateChanged in supervisorField "+e);
                }
                finally{
                    if(pst != null){
                        try{
                            pst.close();
                        }
                        catch(SQLException ex){
                            JOptionPane.showMessageDialog(null, ex);
                        }
                    }
                    if(rs != null){
                        try{
                            rs.close();
                        }
                        catch(SQLException ex){
                            JOptionPane.showMessageDialog(null, ex);
                        }
                    }
                    if(conn != null){
                        try{
                            conn.close();
                        }
                        catch(SQLException ex){
                            JOptionPane.showMessageDialog(null, ex);
                        }
                    }
                }
                region.setEditable(false);
                area.setEditable(false);
                branch.setEditable(false);
            }
        } else {
        }
    }