care about selection

This commit is contained in:
Konstantin Bulenkov
2011-08-22 11:12:11 +02:00
parent 5291622673
commit 8774dbe130
@@ -64,11 +64,13 @@ public class TableRowsDnDSupport {
model.exchangeRows(min, min + 1);
min++;
}
table.getSelectionModel().setSelectionInterval(min, min);
} else {
while (max > min) {
model.exchangeRows(max, max - 1);
max--;
}
table.getSelectionModel().setSelectionInterval(max, max);
}
}
}