nettoyage

This commit is contained in:
2022-05-24 16:15:21 +02:00
parent cac52c7180
commit ef1fddc4ae
16 changed files with 10 additions and 8 deletions
BIN
View File
Binary file not shown.
+10 -8
View File
@@ -18,25 +18,27 @@ public class Banniere extends JPanel {
}
// Méthode pour afficher le nombre de mines restantes
public void setMinesLeft(int minesLeft){
public void setMinesLeft(int minesLeft) {
this.removeAll();
this.add(new JLabel("Mines restantes : "+Integer.toString(minesLeft)));
this.add(new JLabel("Mines restantes : "+Integer.toString(minesLeft)),BorderLayout.CENTER);
this.repaint();
}
// Méthode pour indiquer au joueur sa Victoire
public void setVictoire(){
this.add(new Fin("Victoire ! Retour au menu...",this.getSize()));
this.repaint();
public void setVictoire() {
JLabel victoire = new JLabel("Victoire ! Retour au menu...");
victoire.setForeground(new Color(0, 22, 236));
this.add(victoire,BorderLayout.SOUTH);
Timer timerMenu = new Timer(5000, new MenuListener(this.fenetre, this.menu));
timerMenu.setRepeats(false);
timerMenu.start();
}
// Méthode pour indiquer au joueur sa Défaite
public void setDefaite(){
this.add(new Fin("Défaite ! Retour au menu...",this.getSize()));
this.repaint();
public void setDefaite() {
JLabel defaite = new JLabel("Défaite ! Retour au menu...");
defaite.setForeground(new Color(0, 22, 236));
this.add(defaite,BorderLayout.SOUTH);
Timer timerMenu = new Timer(5000, new MenuListener(this.fenetre, this.menu));
timerMenu.setRepeats(false);
timerMenu.start();
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.