private void moveItemDown() { int index = menuItemsTable.getSelectedRow(); // Return if nothing was selected. if (index == -1) return; java.util.List<Parameter.MenuItem> items = parameter.getMenuItems(); // Return if the last item is selected. if (index >= items.size() - 1) return; nodeAttributesDialog.moveParameterItemDown(parameter, index); // TODO: Changing the selection doesn't have any effect on Mac. menuItemsTable.changeSelection(index + 1, 1, false, false); }