This commit is contained in:
EmmanuelTiamzon
2025-09-26 11:12:16 +02:00
parent d93132096d
commit e1060e79bd
9 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
public class Controlleur {
private int numFenetre = 0;
private GFenetre gfenetre;
public Controlleur() {
this.gfenetre = gfenetre
}
public void change(int numFenetre) {
this.numFenetre = numFenetre;
frame.getContentPane().removeAll();
if(this.numFenetre == 0) {
if(this.getImage() == )
this.image1.setHorizontalAlignment(JLabel.CENTER);
this.frame.add(this.image1, BorderLayout.CENTER);
} else if(this.numFenetre == 1) {
this.image2.setHorizontalAlignment(JLabel.CENTER);
this.frame.add(this.image2, BorderLayout.CENTER);
}
this.frame.revalidate();
this.frame.repaint();
}
}