Looks like there is an issue with setting background colors for panels in JavaFX 8.
I had been trying the below, but none of them set the appropriate background colors.
VBox panel = new VBox(); panel.setAlignment(Pos.TOP_LEFT); // None of the below work panel.setStyle("-fx-background-color: #FFFFFF;"); panel.setBackground(new Background(new BackgroundFill(Color.WHITE, CornerRadii.EMPTY, Insets.EMPTY)));
Is there something wrong in the way I am setting the background color? This used to work with earlier versions of JavaFX 2.2.
Thanks.
panel.setStyle("-fx-background-color: #FFFFFF;");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With