use of javafx.scene.layout.Background in project Board-Instrumentation-Framework by intel.
the class Demo method start.
@Override
public void start(Stage stage) {
StackPane pane = new StackPane();
pane.setPadding(new Insets(5, 5, 5, 5));
pane.setBackground(new Background(new BackgroundFill(Color.rgb(70, 70, 70), CornerRadii.EMPTY, Insets.EMPTY)));
pane.getChildren().setAll(signalTower);
Scene scene = new Scene(pane);
stage.setTitle("SignalTower");
stage.setScene(scene);
stage.show();
timer.start();
}
Aggregations