From 044f1006114d225dd0b715f11a297c8f98951910 Mon Sep 17 00:00:00 2001 From: Amir Daouadi Date: Tue, 18 Apr 2023 12:17:37 +0200 Subject: [PATCH] Modification de la grille --- src/Boutons.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Boutons.java b/src/Boutons.java index 01bb22f..69aeb4c 100644 --- a/src/Boutons.java +++ b/src/Boutons.java @@ -42,7 +42,8 @@ public class Boutons extends JPanel { case 0: // afficher la grille aléatoirement GridPanel grille = new GridPanel(); - addGrid(grille); + this.fenetrePrincipale.add(grille); + this.fenetrePrincipale.validate(); break; case 1: // TODO: partir d'une grille vide