I have a very simple JavaFX Controller with a simple Username, Password and Logon button.
What I want to do is when the user clicks Logon, I want the disable the inputs - which I do in code with:
this.gridPanelLogon.setDisabled(true);
And - this works but my issue is - it appears to be threaded, in that after this call I then make a JerseyClient call to a web REST service - and once that code completes it then updates the UI and disables the gridPanel. But what I would like is for the gridPanel to first disable THEN to call and it seems the UI is only updated after all the code runs (not right when it hits the line of code above).
If I explained this poorly I apologize, and I'd be happy to help clarify more but was hoping maybe someone has experienced this and could either help explain why or a work around. I also tried one other work around, putting a change listener to the gridPanel's disabled property - this didn't work and resulted in the same delay as mentioned above.
Any help would be greatly appreciated - and thanks!!