Make operational and also organize all the buttons
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mat
2023-05-04 18:22:23 +02:00
parent a43e3b150a
commit 8110a93910
3 changed files with 69 additions and 47 deletions

View File

@ -1,45 +1,40 @@
package school_project;
import javafx.application.Application;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.Menu;
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;
import javafx.stage.Stage;
import school_project.Menu.MenuAcceuil;
import school_project.Menu.MenuLevelDay1;
import school_project.Menu.MenuLevelDay2;
import school_project.Menu.MenuLevel;
public class Controller extends Application {
private Stage stage;
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 YOU");
stage.setScene(new Scene(root));
stage.show();
}
public void switchScenes(Scene scene){
stage.setScene(scene);
public static void switchRoot(Parent root){
stage.setScene(new Scene(root));
}
public static void main(String[] args) {
launch(args);