void (JViewport viewport) { viewport.addChangeListener(e -> { if (isShowRootNames()) { AbstractTableModel model = getModel(); Couple<Integer> visibleRows = ScrollingUtil.getVisibleRows(this); if (visibleRows.first >= 0) { TableModelEvent evt = new TableModelEvent(model, visibleRows.first, visibleRows.second, VcsLogColumnManager.getInstance().getModelIndex(Root.INSTANCE)); model.fireTableChanged(evt); } } mySelectionSnapshot = null; }); }