Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095346

Mac OSX Yosemite StageStyle.UTILITY comes up with wrong window decoration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u60
    • 8u40
    • javafx
    • None
    • Mac OSX Yosemite 10.10.1

      Apply this diff to HelloRectangle.java:

      diff --git a/apps/toys/Hello/src/main/java/hello/HelloRectangle.java b/apps/toys/Hello/src/main/java/hello/HelloRectangle.java
      --- a/apps/toys/Hello/src/main/java/hello/HelloRectangle.java
      +++ b/apps/toys/Hello/src/main/java/hello/HelloRectangle.java
      @@ -31,6 +31,7 @@
       import javafx.scene.paint.Color;
       import javafx.scene.shape.Rectangle;
       import javafx.stage.Stage;
      +import javafx.stage.StageStyle;
       
       public class HelloRectangle extends Application {
       
      @@ -51,6 +52,7 @@
       
               root.getChildren().add(rect);
               stage.setScene(scene);
      + stage.initStyle(StageStyle.UTILITY);
               stage.show();
           }

            morris Morris Meyer (Inactive)
            morris Morris Meyer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: