Make a package for all the Menu class

This commit is contained in:
Mat 2023-05-01 12:31:27 +02:00
parent ee0350c251
commit 644af67a55
4 changed files with 12 additions and 5 deletions

View File

@ -25,8 +25,6 @@ public class Controller extends Application {
//set up the page //set up the page
stage = primaryStage; stage = primaryStage;
stage.setTitle("ROAD TO MASTER YOU"); stage.setTitle("ROAD TO MASTER YOU");
stage.setScene(MenuAcceuil);
stage.show(); stage.show();
} }

View File

@ -1,4 +1,4 @@
package school_project; package school_project.Menu;
import javafx.geometry.Insets; import javafx.geometry.Insets;
import javafx.geometry.Pos; import javafx.geometry.Pos;

View File

@ -1,4 +1,4 @@
package school_project; package school_project.Menu;
import javafx.geometry.HPos; import javafx.geometry.HPos;
import javafx.geometry.Insets; import javafx.geometry.Insets;
@ -21,7 +21,7 @@ public class MenuLevelDay1 extends GridPane {
GdP = new GridPane(); GdP = new GridPane();
//add all the button for level //add all the button for level
for (Button c : Level_button) for (Button c : Level_button)
c = new Button(); c = new Button((String(c+1)));
Level_button[0] = new Button("1"); Level_button[0] = new Button("1");
Level_button[1] = new Button("2"); Level_button[1] = new Button("2");

View File

@ -0,0 +1,9 @@
package school_project.Menu;
import school_project.Menu.MenuLevelDay1;
public class MenuLevelDay2 extends MenuLevelDay1 {
public MenuLevelDay2(){
super();
}
}