public void start(Stage stage)
{
Group root = new Group( );
fillGroup( root, 0.9 );
fillGroup( root, 0.8 );
Scene scene = new Scene(root, sceneWidth, sceneHeight, Color.GHOSTWHITE );
stage.setTitle("Two Calls to fillGroup");
stage.setScene(scene);
stage.show();
}
}
That was easy enough. Here is the scene graph that is built:
Could a third and a fourth call to fillGroup()
add even more rectangles to the scene graph?