After you put some values in the programm over the keyboard, the stage started, But at the same time i would like to have the stage is open, user can put some values again and the stage restart.
Is that possible?
I would like to do something like this:
primaryStage.setScene(scene);
primaryStage.show();
javafx.application.Platform.runLater(new Runnable() {
public void run() {
if (TastaturEingabe.readBoolean("Möchten Sie ein neues Diagramm zeichnen?")) {
// Input through keyboard
readInputJahrgang(vintage, FIRST_PROMPT);
readInputLager(vintage, FIRST_PROMPT);
primaryStage.hide();
} else {
primaryStage.close();
}
return;
}
});