private void cbperfilItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbperfilItemStateChanged
        try {
            if (!flag) {
                if (newPerfilSelect == null || newPerfilSelect.isEmpty()) {
                    newPerfilSelect = cbperfil.getSelectedItem().toString();
                    if (cbperfil.getItemCount() > 0) {
                        //cargar_check(cbperfil.getSelectedItem().toString());
                    }
                //cargar_perfiles();

                } else {
                    if (cbperfil.getItemCount() > 0) {
                        if (!newPerfilSelect.equals(cbperfil.getSelectedItem().toString())) {
                            newPerfilSelect = cbperfil.getSelectedItem().toString();
                            cargar_check(cbperfil.getSelectedItem().toString());
                        }
                    }
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        /*if(flag == true){
         try {
         System.out.println("count: "+cbperfil.getItemCount());
         if(cbperfil.getItemCount() != 0){
         cargar_check(cbperfil.getSelectedItem().toString());
         }
         } catch (SQLException ex) {
         ex.printStackTrace();
         }
         }
         flag = true;*/
    }//GEN-LAST:event_cbperfilItemStateChanged