title: How to make an OS X menubar in JavaFX
body: <p>I'm unable to make a JavaFX MenuBar show as a standard OS X menu bar, at the top of the screen.</p>
  
  <p>Here's what I've tried in my subclass of Application:</p>
  
  <pre><code>public void start(Stage primaryStage) throws Exception {
      final Menu menu1 = new Menu("File");
      final Menu menu2 = new Menu("Options");
      final Menu menu3 = new Menu("Help");
  
      MenuBar menuBar = new MenuBar();
      menuBar.getMenus().addAll(menu1, menu2, menu3);
      menuBar.setUseSystemMenuBar(true);
  
      primaryStage.setTitle("Creating Menus with JavaFX 2.0");
      final Group rootGroup = new Group();
      final Scene scene = new Scene(rootGroup, 800, 400, Color.WHEAT);
  
  
      rootGroup.getChildren().add(menuBar);
      primaryStage.setScene(scene);
      primaryStage.show();
  }
  </code></pre>
  
  <p>I assumed that the use of </p>
  
  <pre><code>menuBar.setUseSystemMenuBar(true);
  </code></pre>
  
  <p>would do the trick, but actually it makes the menuBar disappear altogether.</p>
  
  <p>I'm using Java 1.8.0-b132 on OS X 10.9</p>