Changeset 4525 in josm
- Timestamp:
- 2011-10-19T03:08:48+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r4498 r4525 16 16 import javax.swing.event.ListSelectionEvent; 17 17 import javax.swing.event.ListSelectionListener; 18 import javax.swing.event.TableModelEvent; 18 19 19 20 import org.openstreetmap.josm.actions.AbstractInfoAction; … … 82 83 public void update(Observable o, Object arg) { 83 84 repaint(); 85 } 86 87 /* (non-Javadoc) 88 * @see javax.swing.JTable#tableChanged(javax.swing.event.TableModelEvent) 89 */ 90 @Override 91 public void tableChanged(TableModelEvent e) { 92 int selectedRow = getSelectedRow(); 93 super.tableChanged(e); 94 // Restore list selection (fix #6899) 95 if (selectedRow > -1 && selectedRow < getRowCount()) { 96 getSelectionModel().setSelectionInterval(0, selectedRow); 97 } 84 98 } 85 99
Note:
See TracChangeset
for help on using the changeset viewer.