indicator.setPass(Boolean.FALSE);
});
HBox box = new HBox(passButton, failButton);
AnchorPane root = new AnchorPane();
AnchorPane.setTopAnchor(indicator, 10.0);
AnchorPane.setTopAnchor(segmentedButton, 150.0);
AnchorPane.setTopAnchor(box, 230.0);
root.getChildren().addAll(indicator, segmentedButton, box);
Scene scene = new Scene(root, 300, 250);
primaryStage.setTitle("Indicator Demo");
primaryStage.setScene(scene);