void (ListSelectionEvent e) { if (e.getValueIsAdjusting()) return; ListSelectionModel sm = table.getSelectionModel(); int selectedRow1 = sm.getMinSelectionIndex(); int selectedRow2 = sm.getMaxSelectionIndex(); FilteringTableModel<?> model = getFilteringModel(); int origRow1 = model.getOriginalIndex(selectedRow1); int origRow2 = model.getOriginalIndex(selectedRow2); mySelectionListener.revisionsSelected(origRow1, origRow2); }