This commit is contained in:
Adrien DICK 2024-04-03 11:29:06 +02:00
parent 5a1f7299da
commit 3f73c761a6
2 changed files with 1 additions and 13 deletions

Binary file not shown.

View File

@ -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);