JTable.DropLocation dropLocation = (JTable.DropLocation) support.getDropLocation();
toIndex = dropLocation.getRow();
shouldRemove = dropTable == sourceTable ? true : false;
if (shouldRemove) {
tableModel.moveRow(fromIndex, (toIndex>fromIndex)? --toIndex : toIndex);
} else {
tableModel.addRow(toIndex, dropItem);
}
sourceTable.getSelectionModel().setSelectionInterval(toIndex, toIndex);
return true;