-
Bug
-
Resolution: Fixed
-
P3
-
8u25
-
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}
{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}
- duplicates
-
JDK-8092846 [Mac] StageStyle.UNIFIED combined with scene setFill transparent produces BLACK color
-
- Closed
-