table.setRowSelectionInterval(row - 1, row - 1);
}
}
private void moveDownSelectedTableEntry(JTable table) {
StringTableModel tableModel = (StringTableModel) table.getModel();
int row = table.getSelectedRow();
if (row >= 0 && row < tableModel.getRowCount() - 1) {
tableModel.moveDownEntry(row);
table.setRowSelectionInterval(row + 1, row + 1);
}
}