String menuItemText = RouteConverter.getBundle().getString(column.getName());
ToggleColumnVisibilityAction action = new ToggleColumnVisibilityAction(column);
actionManager.register("show-column-" + column.getName(), action);
JCheckBoxMenuItem popupItem = new JCheckBoxMenuItem(menuItemText);
popupItem.setModel(new PositionTableColumnButtonModel(column, action));
popupMenu.add(popupItem);
JCheckBoxMenuItem menuBarItem = new JCheckBoxMenuItem(menuItemText);
menuBarItem.setModel(new PositionTableColumnButtonModel(column, action));
setMnemonic(menuBarItem, column.getName() + "-mnemonic");
showColumnMenu.add(menuBarItem);
}
}