protected void updateTable() {
        dataTable.clear();
        for(Object o : historicoAluno){
            if(o instanceof MatriculaAlunoTurma){
                MatriculaAlunoTurma alunoTurma = (MatriculaAlunoTurma) o;
                Object tableRow[] = new Object[this.getColumnCount()];
                if(alunoTurma.getTurma() != null){
                    Turma t = alunoTurma.getTurma();
                    if(t.getDisciplina() != null){
                        tableRow[0] = t.getDisciplina().getCodigoDisciplina();
                        tableRow[1] = t.getDisciplina().getNome();
                    }
                    tableRow[2] = t.getPeriodoLetivo();
                    tableRow[3] = t.getNumeroTurma();
                }
                //obter Notas
                for(int i =0; i < 4; ++i){
                    tableRow[4 + i] = alunoTurma.getNota(i);
                }
                tableRow[8] = alunoTurma.getMedia();
                tableRow[9] = alunoTurma.getSituacao();
                
                dataTable.add(tableRow);
            }
        }
    }