-fx-background-radius problem
Jeff Martin
jeff at reportmill.com
Mon Jun 9 22:52:26 UTC 2014
Has anyone seen a problem with -fx-background-radius on Windows? When I run Windows using Parallels (on a Mac), -fx-background-radius styles seem to get ignored.
Here is my sample code:
// Create label with background color and radius
Label label = new Label("Testing"); label.setPadding(new Insets(20));
label.setStyle("-fx-background-color:cyan;-fx-background-radius:20;");
// Add to box, scene and stage
VBox vbox = new VBox(); vbox.setPrefSize(300,300); vbox.setAlignment(Pos.CENTER);
vbox.getChildren().add(label); aStage.setScene(new Scene(vbox)); aStage.show();
On my Mac it renders correctly: http://www.reportmill.com/examples/Radius/RadiusMac.jpg
On Parallels Windows it does not: http://www.reportmill.com/examples/Radius/RadiusWin.jpg
Am I missing something or should I file a bug?
jeff
More information about the openjfx-dev
mailing list