I\'m currently working with two controller classes.
In Controller1 it creates a new stage that opens on top of the main one.
Stage stage = new Stage
Use a PauseTransition:
PauseTransition delay = new PauseTransition(Duration.seconds(5)); delay.setOnFinished( event -> stage.close() ); delay.play();