java - Switching scenes at correct time in JavaFx -


my question switching scenes on ui. trying switch scenes reload javafx program. want loading scene appear before refresh user knows data being loaded. here code:

@fxml private void restartvalidation(actionevent e) throws ioexception, interruptedexception, invalidreferenceexception {     sceneresponsibilities.setvisible(true);     scenedeviceproperties.setvisible(false);     scenearticlenumbers.setvisible(false);     scenebusservice.setvisible(false);     scenedtc.setvisible(false);     scenedp.setvisible(false);     noerrors.setvisible(false);      runinitializationofvalidation(); } 

i want able go scene sceneresponsibilities before reload data. code seems directly go runinitializaitonofvalidation(). when go debug mode shows of setvisible code ran, sceneresponsibilities not shown on ui. have no clue why is. ideas?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -