title: JTable row selection after TableModel update
body: <p>How to preserve table row selecetion after table mode update (fireTableDataChanes)? I know that I should save selection before fire and restore it after (from <a href="https://stackoverflow.com/questions/254212/preserve-jtable-selection-across-tablemodel-change">there</a>). But when I try to restore selection in TableModelListener it doesn't work. So where should I restore selection?</p>
  
  <p>Update:
  Now I try to restore selection in this way:
          table.setModel(model);</p>
  
  <pre><code>    model.addTableModelListener(new TableModelListener() {
  
        @Override
        public void tableChanged(TableModelEvent e) {
          table.addRowSelectionInterval(1, 1);
        }
      });
  </code></pre>
  
  <p>but it doesn't work.</p>