SAE21_2022/ExporterFVG.java

28 lines
876 B
Java
Raw Normal View History

2023-04-18 18:38:32 +02:00
import javax.swing.JPanel;
public class ExporterFVG {
private int[] infos_grille;
private JPanel[][] composanteGrille;
private FenetreVideGrille cetteFvg;
private int Taille;
public ExporterFVG(FenetreVideGrille uneFvg){
this.cetteFvg = uneFvg;
}
protected void jsp(){
this.infos_grille=this.cetteFvg.get_info();
this.Taille=this.infos_grille[0];
this.composanteGrille=this.cetteFvg.getGrille();
for(int i=0; i<this.infos_grille.length;i++){
System.out.println(i+" elt : "+this.infos_grille[i]);
}
for(int i=0; i<this.Taille;i++){
for(int j=0; j<this.Taille; j++){
System.out.println("la couleur que je ne vois pas haha : "+this.composanteGrille[i][j].getBackground());
}
}
Enregistrer dwnld = new Enregistrer();
}
}