import javax.swing.*; public class Main { public static void main(String[] args) { int[][] grid = SudokuGenerator.generateGrid(); JFrame frame = new JFrame("Sudoku"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); SudokuDraw sudokuDraw = new SudokuDraw(grid); frame.add(sudokuDraw); frame.pack(); frame.setLocationRelativeTo(null); // Centrer la fenĂȘtre sur l'Ă©cran frame.setVisible(true); } }