import javax.swing.*; import java.awt.*; public class DataFenetre{ private JFrame fenetre; private GridLayout grille; private JPanel[][] listeCase; private static final Color[] couleur = {Color.BLACK, Color.WHITE}; public DataFenetre(int taille, int[][] listeCaseInt){ this.grille = new GridLayout(taille, taille); this.fenetre = new JFrame("SAE21_2022"); this.fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.fenetre.setLayout(this.grille); this.fenetre.setSize(500, 300); this.fenetre.setLocation(0, 0); this.listeCase = new JPanel[taille][taille]; for (int y=0; y