42 lines
699 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-05 11:50:17 +02:00
import school_project.Menu.*;
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;
2023-05-05 11:50:17 +02:00
stage.setTitle("ROAD TO MASTER");
2023-05-01 16:05:59 +02:00
stage.setScene(new Scene(root));
2023-04-28 11:28:10 +02:00
stage.show();
}
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) {
launch();
2023-02-25 13:55:35 +01:00
}
}
2023-04-28 11:28:10 +02:00