From 3765cce1973230b6f1b903be605366f7ebd99bfe Mon Sep 17 00:00:00 2001 From: Antonin Boyon Date: Tue, 6 Apr 2021 17:34:04 +0200 Subject: [PATCH] fixing some bugs for the GUI gride --- src/battleship/view/Window.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/battleship/view/Window.java b/src/battleship/view/Window.java index a206170..0d474c2 100644 --- a/src/battleship/view/Window.java +++ b/src/battleship/view/Window.java @@ -19,7 +19,7 @@ public class Window extends View { public Window(Game game) { super(game); this.frame = new JFrame("Battleship"); - frame.setSize(largeur,hauteur); + frame.setSize(largeur+largeur/38,hauteur+hauteur/13); frame.setContentPane(new Draw()); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.setVisible(true); @@ -36,15 +36,19 @@ public class Window extends View { area.setBounds(20,10,400,20); //area.append("A B C D E F G H I J"); frame.add(area);*/ - for (int abscisse=largeur/24; abscisse