nettoyage
This commit is contained in:
parent
cac52c7180
commit
ef1fddc4ae
BIN
Banniere.class
Normal file
BIN
Banniere.class
Normal file
Binary file not shown.
@ -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
BIN
Case.class
Normal file
Binary file not shown.
BIN
Doute.class
Normal file
BIN
Doute.class
Normal file
Binary file not shown.
BIN
Entourage.class
Normal file
BIN
Entourage.class
Normal file
Binary file not shown.
BIN
Etoile.class
Normal file
BIN
Etoile.class
Normal file
Binary file not shown.
BIN
FrameJeu.class
Normal file
BIN
FrameJeu.class
Normal file
Binary file not shown.
BIN
FrameMenu$1.class
Normal file
BIN
FrameMenu$1.class
Normal file
Binary file not shown.
BIN
FrameMenu.class
Normal file
BIN
FrameMenu.class
Normal file
Binary file not shown.
BIN
Grille.class
Normal file
BIN
Grille.class
Normal file
Binary file not shown.
BIN
ListenerCase.class
Normal file
BIN
ListenerCase.class
Normal file
Binary file not shown.
BIN
Main.class
Normal file
BIN
Main.class
Normal file
Binary file not shown.
BIN
MenuListener.class
Normal file
BIN
MenuListener.class
Normal file
Binary file not shown.
BIN
NewGameListener.class
Normal file
BIN
NewGameListener.class
Normal file
Binary file not shown.
BIN
SettingsListener.class
Normal file
BIN
SettingsListener.class
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user