private void setDisciplina(Disciplina disciplina) {
        int index = 0;
        int indexDisciplina = -1;
        //evitar disciplina duplicada
        while(index < cmbDisciplinas.getItemCount() && indexDisciplina < 0){
            String codDisciplina = ((Disciplina)cmbDisciplinas.getItemAt(index)).getCodigoDisciplina();

            if(codDisciplina.equals(disciplina.getCodigoDisciplina())){
                indexDisciplina = index;
            }
            ++index;
        }
        if(indexDisciplina >= 0){
            cmbDisciplinas.setSelectedIndex(indexDisciplina);
        }
        else{
            //Adiciona e seleciona disciplina
            cmbDisciplinas.addItem(disciplina);
            cmbDisciplinas.setSelectedItem(disciplina);
        }
    }