I show here an image of my welcome scene.
The current behavior of the Create New Project button is shown here:
Stage stage = (Stage)(
You should try adding in ControlsFX this will help.
You can do the following:
Service service = new Service(){
@Override
protected Task createTask() {
return new Task() {
@Override
protected T call() throws Exception {
//Do your processing here. }
};
}
};
service.setOnSucceeded(event -> {//do your processing});
service.setOnFailed(event -> {//do your processing});
ProgressDialog pd = new ProgressDialog(service);
pd.setContentText("Please wait while the window loads...");
pd.initModality(Modality.WINDOW_MODAL);
pd.initOwner(stage);
service.start();
This will put your code on the background thread. ControlsFX dialogs start and stop with the service.