@Override
        public void valueChanged(ListSelectionEvent e) {
            if (isAutoFitRowHeights() && e.getValueIsAdjusting()) {
                fitRowHeight(table, e.getFirstIndex());
                if (e.getFirstIndex() != e.getLastIndex()) {
                    fitRowHeight(table, e.getLastIndex());
                }
            }
        }