@Override public Object getValueAt(int rowIndex, int columnIndex) { Aluno titulo = lista.get(rowIndex); switch (columnIndex) { case 0: return titulo.getId(); case 1: return titulo.getNome(); case 2: return titulo.getNota(); default: throw new IndexOutOfBoundsException("column index out of bounds"); } }