how can switch between scenes if the condition is true JavaFX
As @James_D already said you have to pass a non-null event to get the stage variable, and you should also change the scene in the same stage instead of creating a new stage again, ’cause this will not take care of resources and will slow down the application. Also, looking at your login code, I … Read more