Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1

Chapter 11 ■ 3D SCene Configuration: uSing the perSpeCtiveCamera anD pointLight


I want a white fill, so I used CornerRadii.EMPTY and Insets.EMPTY for the last two parameters, in that
order, as required by the constructor method parameter. The final method call looks like this, as shown in
Figure 11-12:


.setBackground(new Background(new BackgroundFill(Color.White,CornerRadii.EMPTY,Insets.EMPTY) ));


Figure 11-11. Set uiLayout StackPane background to white using .setBackground(new Background(new
BackgroundFill(Color.WHITE)));


Figure 11-12. Add BackgroundFill constructor method parameters (Paint, CornerRadii, and Insets) to the
method call

Free download pdf