mainBox.getChildren().add(anchorButtons);
/*
* MenuBar
*/
MenuBar menuBar = new MenuBar();
Menu menuSystemPreferences = new Menu("Systemeinstellungen");
Menu menuServices = new Menu("Dienste");
MenuItem menuNoService = new MenuItem("Keine Dienste Verf\u00FCgbar");
menuNoService.setDisable(true);
MenuItem menuServPref = new MenuItem("Dienste Enistellungen ...");
menuServices.getItems().addAll(menuNoService, menuServPref);
MenuItem menuHide = new MenuItem("Sytemeinstellungen ausblenden");
menuHide.setAccelerator(KeyCombination.keyCombination("shortcut+H"));
MenuItem menuHideOthers = new MenuItem("Andere ausblenden");
menuHideOthers.setAccelerator(KeyCombination.keyCombination("Alt+shortcut+H"));
MenuItem menuShowAll = new MenuItem("Alle einblenden");
menuShowAll.setDisable(true);
menuSystemPreferences.getItems().addAll(new MenuItem("\u00DCber Systemeinstellungen"), new SeparatorMenuItem(), menuServices,
new SeparatorMenuItem(), menuHide, menuHideOthers, menuShowAll, new MenuItem("Systemeinstellungen beenden"));
Menu menuEdit = new Menu("Bearbeiten");
menuEdit.getItems().addAll(new MenuItem("..."));
Menu menuPreferences = new Menu("Einstellungen");
menuPreferences.getItems().addAll(new MenuItem("..."));
Menu menuWindow = new Menu("Fenster");
MenuItem windowClose = new MenuItem("Schlie\u00dfen");
windowClose.setAccelerator(KeyCombination.keyCombination("shortcut+W"));
MenuItem windowDock = new MenuItem("Im Dock ablegen");
windowDock.setAccelerator(KeyCombination.keyCombination("shortcut+M"));
CheckMenuItem actual = new CheckMenuItem("Datum & Uhrzeit");
actual.setSelected(true);
menuWindow.getItems().addAll(windowClose, windowDock, new SeparatorMenuItem(), actual);
Menu menuHelp = new Menu("Hilfe");
MenuItem help = new MenuItem("Systemeinstellungen-Hilfe");
help.setAccelerator(KeyCombination.keyCombination("shortcut+?"));
menuHelp.getItems().addAll(new MenuItem("Schlie\u00dfen"), help);
menuBar.getMenus().addAll(menuSystemPreferences, menuEdit, menuPreferences, menuWindow, menuHelp);
mainBox.getChildren().add(menuBar);
Scene myScene = new Scene(mainBox, 667, sceneHeight);
AquaFx.style();
stage.setTitle("Netzwerk (AquaFX)");