@@ -0,0 +1,3074 @@
+package de.codecentric.centerdevice.sample;%0A%0Aimport de.codecentric.centerdevice.MenuToolkit;%0Aimport javafx.application.Application;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.control.Menu;%0Aimport javafx.scene.control.MenuBar;%0Aimport javafx.scene.control.MenuItem;%0Aimport javafx.scene.control.SeparatorMenuItem;%0Aimport javafx.scene.layout.StackPane;%0Aimport javafx.stage.Stage;%0A%0A/**%0A * Skeleton for Standard Macintosh Application%0A * See: %22OS X Human Interface Guidelines%22%0A */%0Apublic class StandardMacApp extends Application %7B%0A    static final String appName = %22Standard%22;%0A    static final String mainWindowTitle = %22Main%22;%0A%0A    @Override%0A    public void start(Stage primaryStage) throws Exception %7B%0A%0A        StackPane root = new StackPane();%0A        primaryStage.setScene(new Scene(root, 300, 200));%0A        primaryStage.requestFocus();%0A        primaryStage.setTitle(mainWindowTitle);%0A        primaryStage.show();%0A%0A        MenuToolkit tk = MenuToolkit.toolkit();%0A%0A        MenuBar bar = new MenuBar();%0A%0A        // Application Menu%0A        // TBD services, show/hide, etc.%0A        Menu appMenu = new Menu(appName);   // Name for appMenu can't be set at Runtime%0A        MenuItem aboutItem = new MenuItem(%22About%22);%0A        MenuItem prefsItem = new MenuItem(%22Preferences...%22);%0A        MenuItem quitItem = tk.createQuitMenuItem(appName);%0A        appMenu.getItems().addAll(aboutItem,%0A                                    new SeparatorMenuItem(),%0A                                    prefsItem,%0A                                    new SeparatorMenuItem(),%0A                                    quitItem);%0A%0A        // File Menu (items TBD)%0A        Menu fileMenu = new Menu(%22File%22);%0A        MenuItem newItem = new MenuItem(%22New...%22);%0A        fileMenu.getItems().addAll(newItem, new MenuItem(%22TBD%22));%0A%0A        // Edit (items TBD)%0A        Menu editMenu = new Menu(%22Edit%22);%0A        editMenu.getItems().addAll(new MenuItem(%22TBD%22));%0A%0A        // Format (items TBD)%0A        Menu formatMenu = new Menu(%22Format%22);%0A        formatMenu.getItems().addAll(new MenuItem(%22TBD%22));%0A%0A        // View Menu (items TBD)%0A        Menu viewMenu = new Menu(%22View%22);%0A        viewMenu.getItems().addAll(new MenuItem(%22TBD%22));%0A%0A        // Window Menu%0A        // TBD standard window menu items%0A        Menu windowMenu = new Menu(%22Window%22);%0A        MenuItem mainWinItem = new MenuItem(mainWindowTitle);%0A        windowMenu.getItems().addAll(new MenuItem(%22TBD%22),%0A                                new SeparatorMenuItem(),%0A                                mainWinItem);%0A%0A        // Help Menu (items TBD)%0A        Menu helpMenu = new Menu(%22Help%22);%0A        helpMenu.getItems().addAll(new MenuItem(%22TBD%22));%0A%0A        bar.getMenus().addAll(appMenu,%0A                                fileMenu,%0A                                editMenu,%0A                                formatMenu,%0A                                viewMenu,%0A                                windowMenu,%0A                                helpMenu);%0A%0A        tk.setMenuBar(primaryStage, bar);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        launch(args);%0A    %7D%0A%7D%0A

Add a sample with Standard Mac menus