private void btAddRdvActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddRdvActionPerformed
        if (cbMedecin.getSelectedIndex() == 0 ||
                cbSpecialisation.getSelectedIndex() == 0 ||
                cbTranche.getSelectedIndex() == 0 ||
                dpDate.getDate() == null) {
            JOptionPane.showMessageDialog(this, "Veuillez remplir tous les champs!", "Champs manquants!", JOptionPane.WARNING_MESSAGE);
        } else {
            Rdv rdv = new Rdv();
            rdv.setMedecin((Medecin)cbMedecin.getSelectedItem());
            rdv.setTypeRdv((Specialisation)cbSpecialisation.getSelectedItem());
            rdv.setDateRdv(dpDate.getDate());
            rdv.setHeure((Tranche)cbTranche.getSelectedItem());
            rdv.setPatient(patient);
            rdv.setStatut(StatutRdv.EN_COURS);
            if (ctrl.updateRdv(rdv)) {
                JOptionPane.showMessageDialog(this, "Rendez-vous sauvegardé!", 
                        "Sauvegardé", JOptionPane.INFORMATION_MESSAGE);
                viderChamps();
            }
        }
    }//GEN-LAST:event_btAddRdvActionPerformed