I want to change screen from login.fxml to home.fxml. Should I change stage or change scene? I'm not sure what best practice is? Also can I use a lambda expression for the handler in the controller?
First, let's start out with the
As known, the
JavaFX hierarchy is based on:
Practically speaking, a rule-of-thumb in my opinion is the future:
If you plan on going forward to a different place in the flow of your program (login -> profile, for example) - change the
If you are in the same enviroment (login for the first time -> login after multiple wrong tries) - change the
As for lambdas: Ahhmmm... if your current
JavaFX version has the abillity - there is no reason not to use it.