.autoNightMode(true)
.build();
}
@Override public void start(Stage stage) {
GridPane pane = new GridPane();
pane.setPadding(new Insets(10, 10, 10, 10));
pane.setHgap(10);
pane.setVgap(10);
pane.add(clock1, 0, 0);
pane.add(clock2, 0, 1);
pane.add(clock3, 1, 0);
pane.add(clock4, 1, 1);
pane.add(clock5, 2, 0);
pane.add(clock6, 2, 1);
//Scene scene = new Scene(pane, 400, 400, Color.rgb(195, 195, 195));
Scene scene = new Scene(pane, Color.BLACK);
stage.setTitle("Clock Demo");
stage.setScene(scene);
stage.show();
//clock.setMajorTickHeight(30);
calcNoOfNodes(scene.getRoot());
System.out.println("No. of nodes in scene: " + noOfNodes);
for (Node node : pane.getChildren()) {
((Clock) node).setRunning(true);
}
}