I'm trying to make my startCreation
Button display a Text
object that just says "Working..."
However, when I try and do it like this:
startCreation.setOnAction(e ->
{
tWorking.setVisible(true);
//This is where my method would be called
tWorking.setVisible(false);
});
the Text
is never really visible, even though during debugging it changes to true
.
I think this has something to do with the Thread not updating the Stage
, but I am not sure about that either.
Does anyone have a solution?