My school team and I were tasked to create a desktop app. We want to code without the use of FXML and we were unsure how to switch the scenes. How would the stage be referenced then? Any sample skeleton code provided would be great.
Currently, the main GUI looks something like this. I was told that I could actually use the login/home controller to display its login instead of using static methods in the main GUI.
public class Main extends Application {
.....
public static void displayHome() {
home.getStylesheets().add("css/MainCSS.css");
window.setScene(home);
}
public static void displayLogin() {
login.getStylesheets().add("css/MainCSS.css");
window.setScene(login);
}
public static void main(String[] args) {
launch(args);
}
...
...
.....
}