tableModel.addRow(new Object[]{g, g.getMemberCount()});
}
}
public void valueChanged(ListSelectionEvent e) {
GroupDTO selected = null;
if (!e.getValueIsAdjusting()) {
selected = getSelectedGroup();
}
if (selected != null) {
System.out.println("Selected: " + selected.getId() + " editable: " +
selected.isEditable());
}
boolean editable = (selected != null && selected.isEditable());
editButton.setEnabled(editable);
removeButton.setEnabled(editable);
}