public int getRowCount() {
return resultsList.size();
}
public Object getValueAt(final int rowIndex, final int columnIndex) {
final Result result = resultsList.get(rowIndex);
switch (columnIndex) {
case 0:
return result.getTestCode();
case 1:
return result.getGrade();
case 2:
return result.getScore();
default:
throw new IllegalArgumentException("Invalid columnIndex");
}
}