title: JAVA FX set window/stage on front of OSX Dock
body: <p>I can't get a JAVA FX "FXML" window to get on front of the OSX Dock on Yosemite 10.10.1.</p>
  
  <p>I created a fresh  "new JavaFX FXML-enabled application" on NetBeans which gives this code :</p>
  
  <pre><code>public class Test extends Application {
      @Override
      public void start(Stage stage) throws Exception {
         Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml"));
         Scene scene = new Scene(root);
         stage.setScene(scene);
         stage.show();
         stage.setAlwaysOnTop(true); // I ADDED THIS
       }
  
       public static void main(String[] args) {
         launch(args);
       }   
  }      
  </code></pre>
  
  <p>I added <code>setAlwaysOnTop()</code> on my stage, but still, my window is always hidden behind the dock.</p>
  
  <p><img src="https://i.stack.imgur.com/rJOu1.png" alt="Window at the left bottom"></p>
  
  <p>Is there a way to set my window on front ?</p>