28 lines
876 B
Java
28 lines
876 B
Java
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();
|
|
}
|
|
}
|