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

StageStyle.UNIFIED not working on OSX 10.9.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u60
    • 8u25
    • javafx
    • OSX 10.9.5

      I've set the scene's fill to `TRANSPARENT` but a black fill is rendered instead. This was working on jre 8u5

      {code:java}
      public class Main extends Application {

          @Override
          public void start(Stage primaryStage) throws Exception{
              primaryStage.setTitle("Hello World");
              primaryStage.initStyle(StageStyle.UNIFIED);
              final VBox vBox = new VBox();
              vBox.setAlignment(Pos.CENTER);
              vBox.setStyle("-fx-background-color: transparent");
              vBox.getChildren().add(new Label("Hello World"));
              
              // remove this and it works!
              primaryStage.setScene(new Scene(vBox, Color.TRANSPARENT));
              primaryStage.show();
          }


          public static void main(String[] args) {
              launch(args);
          }
      }
      {code}

            morris Morris Meyer (Inactive)
            rramisojfx Ranie Jade Ramiso (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: