From 95c10a4358078eed9bbd53930154f73894e6d4cc Mon Sep 17 00:00:00 2001 From: Antonin Boyon Date: Tue, 6 Apr 2021 15:46:09 +0200 Subject: [PATCH] adding grid for GUI --- src/battleship/view/Window.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/battleship/view/Window.java b/src/battleship/view/Window.java index 8ae8b81..a206170 100644 --- a/src/battleship/view/Window.java +++ b/src/battleship/view/Window.java @@ -13,8 +13,8 @@ import java.awt.*; public class Window extends View { private JFrame frame; - private final int hauteur = 750; - private final int largeur = 1250; + private final int hauteur = 600; + private final int largeur = 1200; public Window(Game game) { super(game); @@ -36,13 +36,14 @@ 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);*/ - //23 - 12 - for (int i=100; i (largeur / 23) * 10 && i < (largeur / 23) * 12 - (largeur/40)) i += largeur/23 ; + for (int abscisse=largeur/24; abscisse