From 4cf6fff9af3d510a603753064211923590b672f6 Mon Sep 17 00:00:00 2001 From: Mat Date: Fri, 28 Apr 2023 12:04:22 +0200 Subject: [PATCH] forget to update syntaxe with the array --- .../java/school_project/MenuLevelDay1.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/school_project/MenuLevelDay1.java b/app/src/main/java/school_project/MenuLevelDay1.java index 682653e..f5ae6a1 100644 --- a/app/src/main/java/school_project/MenuLevelDay1.java +++ b/app/src/main/java/school_project/MenuLevelDay1.java @@ -35,19 +35,19 @@ public class MenuLevelDay1 extends Scene { Level_button[11] = new Button("Day 3"); Level_button[12] = new Button("Back to menu"); //add to the good position in gridpane all the button - GdP.add(Day_2,1,0); - GdP.add(Day_3,1,0); - GdP.add(_1,0,1); - GdP.add(_2,1,1); - GdP.add(_3,2,1); - GdP.add(_4,0,2); - GdP.add(_5,1,2); - GdP.add(_6,2,2); - GdP.add(_7,0,3); - GdP.add(_8,1,3); - GdP.add(_9,2,3); - GdP.add(_10,1,4); - GdP.add(bck_menu,2,4); + GdP.add(Level_button[10],1,0); + GdP.add(Level_button[11],1,0); + GdP.add(Level_button[0],0,1); + GdP.add(Level_button[1],1,1); + GdP.add(Level_button[2],2,1); + GdP.add(Level_button[3],0,2); + GdP.add(Level_button[4],1,2); + GdP.add(Level_button[5],2,2); + GdP.add(Level_button[6],0,3); + GdP.add(Level_button[7],1,3); + GdP.add(Level_button[8],2,3); + GdP.add(Level_button[9],1,4); + GdP.add(Level_button[12],2,4); }