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