rowCount = tableModel.getRowCount();
mark = !tableModel.isRowMarked(fileTable.getSelectedRow());
// Goes through all files in the active table, marking all that match 'filter'.
for(int i = tableModel.getFirstMarkableRow(); i < rowCount; i++)
if(filter.accept(tableModel.getCachedFileAtRow(i)))
tableModel.setRowMarked(i, mark);
fileTable.repaint();
// Notify registered listeners that currently marked files have changed on the FileTable
fileTable.fireMarkedFilesChangedEvent();