maj
This commit is contained in:
@@ -4,7 +4,7 @@ import java.awt.*;
|
|||||||
public class SudokuGridConcepteur extends JFrame {
|
public class SudokuGridConcepteur extends JFrame {
|
||||||
private static final int GRID_SIZE = 9; // Taille de la grille Sudoku 9x9
|
private static final int GRID_SIZE = 9; // Taille de la grille Sudoku 9x9
|
||||||
private static final int REGION_SIZE = 3;
|
private static final int REGION_SIZE = 3;
|
||||||
public static final boolean BOOL = true;
|
private static final int status = 1;
|
||||||
private JTextField[][] grid;
|
private JTextField[][] grid;
|
||||||
|
|
||||||
public SudokuGridConcepteur() {
|
public SudokuGridConcepteur() {
|
||||||
@@ -62,7 +62,7 @@ public class SudokuGridConcepteur extends JFrame {
|
|||||||
// Bouton pour chargé la grille
|
// Bouton pour chargé la grille
|
||||||
JButton load = new JButton("Charger");
|
JButton load = new JButton("Charger");
|
||||||
|
|
||||||
LoadButton loader = new LoadButton(GRID_SIZE, grid);
|
LoadButton loader = new LoadButton(GRID_SIZE, grid, status);
|
||||||
|
|
||||||
load.addActionListener(loader);
|
load.addActionListener(loader);
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ import java.awt.*;
|
|||||||
public class SudokuGridJoueur extends JFrame {
|
public class SudokuGridJoueur extends JFrame {
|
||||||
private static final int GRID_SIZE = 9; // Taille de la grille Sudoku 9x9
|
private static final int GRID_SIZE = 9; // Taille de la grille Sudoku 9x9
|
||||||
private static final int REGION_SIZE = 3;
|
private static final int REGION_SIZE = 3;
|
||||||
public static final boolean BOOL = false;
|
private static final int status = 2;
|
||||||
private JTextField[][] grid;
|
private JTextField[][] grid;
|
||||||
|
|
||||||
public SudokuGridJoueur() {
|
public SudokuGridJoueur() {
|
||||||
@@ -62,7 +62,7 @@ public class SudokuGridJoueur extends JFrame {
|
|||||||
// Bouton pour chargé la grille
|
// Bouton pour chargé la grille
|
||||||
JButton load = new JButton("Charger");
|
JButton load = new JButton("Charger");
|
||||||
|
|
||||||
LoadButton loader = new LoadButton(GRID_SIZE, grid);
|
LoadButton loader = new LoadButton(GRID_SIZE, grid, status);
|
||||||
|
|
||||||
load.addActionListener(loader);
|
load.addActionListener(loader);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user