I read the book, but I am still confused about pause transition methods. I made a label showing number, and I want that number to be increased in every second.
As commented by Adowarth :
you can use the PauseTransition if you start it again inside of the finish handler
int cycle = 0;
label.setText("Started");
PauseTransition pause = new PauseTransition(Duration.seconds(1));
pause.setOnFinished(event ->
label.setText("Finished cycle " + cycle++);
pause.play();
);
pause.play();