Auto
This commit is contained in:
parent
5a1f7299da
commit
3f73c761a6
BIN
SudokuDraw.class
BIN
SudokuDraw.class
Binary file not shown.
@ -17,18 +17,6 @@ public class SudokuDraw extends JPanel {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
// Dessiner les valeurs de la grille
|
||||
g.setColor(Color.BLACK);
|
||||
for (int i = 0; i < grid.length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user