UPDATE 13 - Correction de l'affichage importé

This commit is contained in:
fauvet 2023-04-19 00:13:00 +02:00
parent 7f87afb9fe
commit eece18a058
2 changed files with 4 additions and 2 deletions

View File

@ -44,10 +44,10 @@ public class FenetreImpGrille extends Fenetre {
JPanel ce_pannel = new JPanel(); JPanel ce_pannel = new JPanel();
if((i*4+j)==(Lentre*4+Centre)){ if((i*Taille+j)==(Lentre*Taille+Centre)){
ce_pannel.setBackground(Color.RED); ce_pannel.setBackground(Color.RED);
this.fenetre.add(ce_pannel); this.fenetre.add(ce_pannel);
} else if((i*4+j)==(Lortie*4+Cortie)){ } else if((i*Taille+j)==(Lortie*Taille+Cortie)){
ce_pannel.setBackground(Color.BLUE); ce_pannel.setBackground(Color.BLUE);
this.fenetre.add(ce_pannel); this.fenetre.add(ce_pannel);
} else if(ce_double_tab[i][j] == 1){ } else if(ce_double_tab[i][j] == 1){

View File

@ -80,6 +80,7 @@ public class Lecture {
while(data != -1){ while(data != -1){
this.data = fis.read(); this.data = fis.read();
ce_tableau[ce_compteur]=this.data; ce_tableau[ce_compteur]=this.data;
ce_compteur=ce_compteur+1; ce_compteur=ce_compteur+1;
} }
@ -95,6 +96,7 @@ public class Lecture {
for(int n=0; n<8; n++){ //repetition 8 fois pour traiter les 8 bits for(int n=0; n<8; n++){ //repetition 8 fois pour traiter les 8 bits
ce_tableau_temp[n] = temp&1; ce_tableau_temp[n] = temp&1;
System.out.println("la bit vaut : "+ce_tableau_temp[n]);
temp = temp >> 1; temp = temp >> 1;
} }