[macOS] Stage with Utility style shows minimize and maximize buttons starting JDK 25

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • jfx27
    • Affects Version/s: jfx25
    • Component/s: javafx
    • Environment:

      macOS 26.x
      JDK 25 built with Xcode 15.4
      Any recent version of JavaFX (At least 25 and 27 have been tested)

      Running the following code:

      @Override
          public void start(Stage primaryStage) {
              final Scene scene = new Scene(new StackPane(new Label("Utility Window")), 600, 400);
              primaryStage.setTitle("Main Window - JDK" + System.getProperty("java.version"));
              primaryStage.initStyle(StageStyle.UTILITY);
              primaryStage.setScene(scene);
              primaryStage.show();
          }

      shows the expected utility window when running with any JavaFX version and any JDK version lower than 25 ("utility-24.png"), but when running with JDK 25 or higher, the minimize and maximize buttons show up unexpectedly, at a wrong position ("utility-25.png").

            Assignee:
            Jose Pereda
            Reporter:
            Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: