Answers for "how to check time in javafx"

1

javafx every second

Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(1), ev -> {
    //what you want to do
}));
timeline.setCycleCount(1);//do it x times
timeline.setCycleCount(Animation.INDEFINITE);//or indefinitely

//play:
timeline.play();
//pause:
timeline.pause();
//stop:
timeline.stop();
Posted by: Guest on July-07-2020

Code answers related to "how to check time in javafx"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language