@Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        switch (columnIndex) {
            case 0:
                return groups.get(rowIndex).getIdGroups();
            case 1:
                return groups.get(rowIndex).getNumGroup();
            case 2:
                return groups.get(rowIndex).getYearSupply();
            case 3:
                return groups.get(rowIndex).getFaculty().getIdFaculty();
            case 4:
                return groups.get(rowIndex).getFaculty().getNameFaculty();
            default:
                return null;
        }
    }