Auto
This commit is contained in:
parent
5a1f7299da
commit
3f73c761a6
BIN
SudokuDraw.class
BIN
SudokuDraw.class
Binary file not shown.
@ -15,19 +15,7 @@ public class SudokuDraw extends JPanel {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void paintComponent(Graphics g) {
|
protected void paintComponent(Graphics g) {
|
||||||
super.paintComponent(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
|
// Dessiner les valeurs de la grille
|
||||||
g.setColor(Color.BLACK);
|
g.setColor(Color.BLACK);
|
||||||
|
Loading…
Reference in New Issue
Block a user