43 lines
713 B
Java
43 lines
713 B
Java
package school_project;
|
|
|
|
import javafx.application.Application;
|
|
|
|
|
|
import javafx.scene.Parent;
|
|
import javafx.scene.Scene;
|
|
|
|
import javafx.stage.Stage;
|
|
import school_project.Menu.*;
|
|
|
|
|
|
|
|
|
|
|
|
public class Controller extends Application {
|
|
private static Stage stage;
|
|
Parent root;
|
|
|
|
|
|
public void start(Stage primaryStage) {
|
|
//set up the page
|
|
|
|
root = new MenuAcceuil();
|
|
stage = primaryStage;
|
|
stage.setTitle("ROAD TO MASTER");
|
|
switchRoot(root);
|
|
stage.show();
|
|
|
|
}
|
|
|
|
|
|
public static void switchRoot(Parent root){
|
|
Scene scene = new Scene(root);
|
|
stage.setScene(scene);
|
|
}
|
|
public static void main(String[] args) {
|
|
launch();
|
|
}
|
|
}
|
|
|
|
|