public void addModule(Module element, String dirName) { myTableModel.addElement(element, dirName); selectRow(myTableModel.getRowCount() - 1); myTable.requestFocus(); }
public void addElement(T element, final boolean isMarked, ElementProperties elementProperties) { myTableModel.addElement(element, isMarked); myElementToPropertiesMap.put(element, elementProperties); selectRow(myTableModel.getRowCount() - 1); myTable.requestFocus(); }