The basic facility to run something on the JavaFX application thread is Platform.runLater(). However, by your comments, you seem to also want to run the something on the JavaFX application thread after a delay, so that is what this answer addresses.
The code below will schedule to do something on the JavaFX application thread after a 5 second delay:
Platform.runLater(() -> {
PauseTransition pause = new PauseTransition(Duration.seconds(5));
pause.setOnFinished(event -> doSomething());
pause.play();
});
In your case, doSomething() is:
lblToast.setText(6+"");
This is similar to the solution to:
A (minor) advantage of the PauseTransition over the use of ScheduledExecutorService is that the transition does not require an additional thread. A disadvantage is that the ScheduledExecutorService returns a ScheduledFuture which might give you a bit more control over the process as you can call methods like cancel() or isDone() on the ScheduledFuture (that extra control might not be important for your application though).