45 lines
757 B
Java
Raw Normal View History

2023-02-25 13:55:35 +01:00
package school_project;
import javafx.application.Application;
2023-05-01 16:05:59 +02:00
import javafx.scene.Parent;
2023-02-25 13:55:35 +01:00
import javafx.scene.Scene;
2023-02-25 13:55:35 +01:00
import javafx.stage.Stage;
2023-05-01 16:05:59 +02:00
import school_project.Menu.MenuAcceuil;
import school_project.Menu.MenuLevel;
2023-04-28 11:28:10 +02:00
2023-02-25 13:55:35 +01:00
public class Controller extends Application {
private static Stage stage;
2023-05-01 16:05:59 +02:00
Parent root;
2023-04-28 11:28:10 +02:00
public void start(Stage primaryStage) {
//set up the page
2023-05-01 16:05:59 +02:00
root = new MenuAcceuil();
2023-04-28 11:28:10 +02:00
stage = primaryStage;
stage.setTitle("ROAD TO MASTER YOU");
2023-05-01 16:05:59 +02:00
stage.setScene(new Scene(root));
2023-04-28 11:28:10 +02:00
stage.show();
2023-02-25 13:55:35 +01:00
}
2023-04-28 11:28:10 +02:00
public static void switchRoot(Parent root){
stage.setScene(new Scene(root));
2023-04-28 11:28:10 +02:00
}
2023-02-25 13:55:35 +01:00
public static void main(String[] args) {
2023-04-28 11:28:10 +02:00
launch(args);
2023-02-25 13:55:35 +01:00
}
}
2023-04-28 11:28:10 +02:00