nettoyage

This commit is contained in:
Haïssous Kayyissa 2022-05-24 16:15:21 +02:00
parent cac52c7180
commit ef1fddc4ae
16 changed files with 10 additions and 8 deletions

BIN
Banniere.class Normal file

Binary file not shown.

View File

@ -20,14 +20,15 @@ public class Banniere extends JPanel {
// Méthode pour afficher le nombre de mines restantes
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();
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();
@ -35,8 +36,9 @@ public class Banniere extends JPanel {
// 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();
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
Case.class Normal file

Binary file not shown.

BIN
Doute.class Normal file

Binary file not shown.

BIN
Entourage.class Normal file

Binary file not shown.

BIN
Etoile.class Normal file

Binary file not shown.

BIN
Fin.class Normal file

Binary file not shown.

BIN
FrameJeu.class Normal file

Binary file not shown.

BIN
FrameMenu$1.class Normal file

Binary file not shown.

BIN
FrameMenu.class Normal file

Binary file not shown.

BIN
Grille.class Normal file

Binary file not shown.

BIN
ListenerCase.class Normal file

Binary file not shown.

BIN
Main.class Normal file

Binary file not shown.

BIN
MenuListener.class Normal file

Binary file not shown.

BIN
NewGameListener.class Normal file

Binary file not shown.

BIN
SettingsListener.class Normal file

Binary file not shown.