update
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
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();
|
||||
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
DEV.3.1/TP/TP2/Galerie.1/imag2.jpeg
Normal file
BIN
DEV.3.1/TP/TP2/Galerie.1/imag2.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user