vft.setAccelerator(viewportFollowToggleAction.getShortcut().getKeyStroke());
viewportFollowToggleAction.addButtonModel(vft.getModel());
if(Main.platform.canFullscreen()) {
// -- fullscreen toggle action
fullscreenToggleAction = new FullscreenToggleAction();
final JCheckBoxMenuItem fullscreen = new JCheckBoxMenuItem(fullscreenToggleAction);
viewMenu.addSeparator();
viewMenu.add(fullscreen);
fullscreen.setAccelerator(fullscreenToggleAction.getShortcut().getKeyStroke());
fullscreenToggleAction.addButtonModel(fullscreen.getModel());