27 lines
823 B
Java
27 lines
823 B
Java
import javax.swing.JPanel;
|
|
|
|
public class Exporter {
|
|
private int[] infos_grille;
|
|
private JPanel[][] composanteGrille;
|
|
private FenetreRndmGrille cetteFrg;
|
|
private int Taille;
|
|
|
|
public Exporter(FenetreRndmGrille uneFrg){
|
|
this.cetteFrg = uneFrg;
|
|
}
|
|
|
|
protected void jsp(){
|
|
this.infos_grille=this.cetteFrg.get_info();
|
|
this.Taille=this.infos_grille[0];
|
|
this.composanteGrille=this.cetteFrg.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());
|
|
}
|
|
}
|
|
}
|
|
}
|