From 3f73c761a6d1ca833ee7a0b662208868d00c5150 Mon Sep 17 00:00:00 2001 From: dick Date: Wed, 3 Apr 2024 11:29:06 +0200 Subject: [PATCH] Auto --- SudokuDraw.class | Bin 1135 -> 973 bytes SudokuDraw.java | 14 +------------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/SudokuDraw.class b/SudokuDraw.class index 2872e91414fd7be27b7746ff5397e503fa076b81..76be348f5730c7bb5a71834b80cbff6a08aecae4 100644 GIT binary patch delta 386 zcmZ9H&n`nj6vlsZ+nZ^pqpGO(wne%A-BwkL`WrSDtgKkF^Z*hs&=-*V0G1Lvk&uvh z0AcMBEbXPixwR3Q$(i}i`M&R*^O1PfJI`MaPe7Y3gJmp9oN-M>Ghv7^X$1RGWh%)u zGlp5_3<1^XSJTX2?7k&()Gb2{hraTI91E5Pix!WfrfF%hq*=DC(AKP4)>yY}uo<4K z+i=@C-m@}5T$j}9+mtus^3G*2^ylhW^VN2(K3SKlukN8;m+kR2lH03$Ig^1PTA oq_KxD#&t@vX_K5z|Ds)?lprQhb2M=)I;LVdJMWP8Ln0S^82QMDX z-nc^2#FJoB6HPpLB1F&r8Qx8!ey0ryVP-Nj?>leayf;7fZ~xKB-!I>Qc^-zOxfbA3 z)RZ*k5Qj=Ac*34k1Fka}GDXc!aY&tp-A!wn@0Wl1Ic5x(xSWiuN;Ag|!z^=#t3;Zc zhFjd$%p2}-*Km&o&7xt6`-TTBCtK=M*57!!x%v2c>$O5pu1HIwRBI(I=3Md&GK3-{ zC`DHA@Hu?(3?31VIO%Z}Ij+df(d0N)-^ojDSoB~(W&XbN00LLu$RHQUKQWgyC=zvWE+uOc}X@Uo)^UZs`!5* z^`{ispu{W6yrIHdCU{4c1Hm7p{*f95QOXl^8B}BS!XLaYzUmUH8QIH_j~MGcJpLcR CrcL<( diff --git a/SudokuDraw.java b/SudokuDraw.java index 8e391af..1e60d57 100644 --- a/SudokuDraw.java +++ b/SudokuDraw.java @@ -15,19 +15,7 @@ public class SudokuDraw extends JPanel { @Override protected void paintComponent(Graphics g) { - super.paintComponent(g); - - // Dessiner des lignes plus épaisses pour la grille 3x3 - g.setColor(Color.BLACK); - for (int i = 0; i <= GRID_SIZE * REGION_SIZE; i++) { - if (i % REGION_SIZE == 0) { - g.fillRect(0, i * CELL_SIZE - 2, GRID_SIZE * REGION_SIZE * CELL_SIZE, 4); - g.fillRect(i * CELL_SIZE - 2, 0, 4, GRID_SIZE * REGION_SIZE * CELL_SIZE); - } else { - g.fillRect(0, i * CELL_SIZE - 1, GRID_SIZE * REGION_SIZE * CELL_SIZE, 2); - g.fillRect(i * CELL_SIZE - 1, 0, 2, GRID_SIZE * REGION_SIZE * CELL_SIZE); - } - } + super.paintComponent(g); // Dessiner les valeurs de la grille g.setColor(Color.BLACK);