2023-02-25 13:55:35 +01:00
|
|
|
package school_project;
|
|
|
|
|
|
|
|
import javafx.application.Application;
|
2023-04-28 11:28:10 +02:00
|
|
|
import javafx.geometry.HPos;
|
|
|
|
import javafx.geometry.Insets;
|
|
|
|
import javafx.geometry.Pos;
|
2023-05-01 16:05:59 +02:00
|
|
|
import javafx.scene.Parent;
|
2023-02-25 13:55:35 +01:00
|
|
|
import javafx.scene.Scene;
|
|
|
|
import javafx.scene.control.Button;
|
2023-04-28 11:28:10 +02:00
|
|
|
import javafx.scene.control.Label;
|
|
|
|
|
2023-05-01 16:05:59 +02:00
|
|
|
import javafx.scene.control.Menu;
|
2023-04-28 11:28:10 +02:00
|
|
|
import javafx.scene.layout.BorderPane;
|
|
|
|
import javafx.scene.layout.ColumnConstraints;
|
|
|
|
import javafx.scene.layout.GridPane;
|
|
|
|
import javafx.scene.paint.Color;
|
|
|
|
import javafx.scene.text.Font;
|
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.MenuLevelDay1;
|
|
|
|
import school_project.Menu.MenuLevelDay2;
|
2023-04-28 11:28:10 +02:00
|
|
|
|
|
|
|
|
2023-02-25 13:55:35 +01:00
|
|
|
public class Controller extends Application {
|
2023-04-28 11:28:10 +02:00
|
|
|
private 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 void switchScenes(Scene scene){
|
|
|
|
stage.setScene(scene);
|
|
|
|
|
|
|
|
}
|
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
|
|
|
|
|
|
|
|