title: How to create completly full screen application with javafx
body: <p>I have a full screen application, but when I open new dialog(controller) in non fullscreen mode, Windows start panel shown. How to create completly fullscreen application with javafx?</p>
  
  <p>upd
  <img src="https://i.stack.imgur.com/riBqi.jpg" alt="start screen"> 
  Now i open my dialog... Wnen no other(skype, eclipse in screens) windows, it works perfectly. Maybe it bug in javafx?
  <img src="https://i.stack.imgur.com/x62nY.png" alt="Now i open my dialog"></p>
  
  <pre><code>public class Main extends Application {
  @Override
  public void start(final Stage primaryStage) {
      Button btn = new Button();
      btn.setText("Say 'Hello World'");
      btn.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
          @Override
          public void handle(ActionEvent event) {
              Stage dialogStage = new Stage(StageStyle.UTILITY);
              dialogStage.initModality(Modality.APPLICATION_MODAL);
              dialogStage.setScene(new Scene(VBoxBuilder.create()
                      .children(new Text("Hi"), new Button("Ok."))
                      .alignment(Pos.CENTER).padding(new Insets(100)).build()));
              dialogStage.initOwner(primaryStage);
              dialogStage.show();
  
              System.out.println(dialogStage.getOwner() == primaryStage
                      .getOwner());
          }
      });
  
      StackPane root = new StackPane();
      root.getChildren().add(btn);
  
      Rectangle2D r = Screen.getPrimary().getBounds();
      Scene scene = new Scene(root, r.getWidth(), r.getHeight());
  
      primaryStage.setTitle("Hello World!");
      primaryStage.setScene(scene);
      primaryStage.setFullScreen(true);
      primaryStage.show();
  }
  
  public static void main(String[] args) {
      launch(args);
  }
  </code></pre>
  
  <p>}</p>