diff --git a/Banniere.class b/Banniere.class new file mode 100644 index 0000000..7d369f5 Binary files /dev/null and b/Banniere.class differ diff --git a/Banniere.java b/Banniere.java index 9a88fa2..732d92d 100644 --- a/Banniere.java +++ b/Banniere.java @@ -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(); diff --git a/Case.class b/Case.class new file mode 100644 index 0000000..9123118 Binary files /dev/null and b/Case.class differ diff --git a/Doute.class b/Doute.class new file mode 100644 index 0000000..cc6fdf7 Binary files /dev/null and b/Doute.class differ diff --git a/Entourage.class b/Entourage.class new file mode 100644 index 0000000..be28666 Binary files /dev/null and b/Entourage.class differ diff --git a/Etoile.class b/Etoile.class new file mode 100644 index 0000000..62a8626 Binary files /dev/null and b/Etoile.class differ diff --git a/Fin.class b/Fin.class new file mode 100644 index 0000000..51d842f Binary files /dev/null and b/Fin.class differ diff --git a/FrameJeu.class b/FrameJeu.class new file mode 100644 index 0000000..56ed148 Binary files /dev/null and b/FrameJeu.class differ diff --git a/FrameMenu$1.class b/FrameMenu$1.class new file mode 100644 index 0000000..a31277b Binary files /dev/null and b/FrameMenu$1.class differ diff --git a/FrameMenu.class b/FrameMenu.class new file mode 100644 index 0000000..214efb7 Binary files /dev/null and b/FrameMenu.class differ diff --git a/Grille.class b/Grille.class new file mode 100644 index 0000000..190aeeb Binary files /dev/null and b/Grille.class differ diff --git a/ListenerCase.class b/ListenerCase.class new file mode 100644 index 0000000..66d4389 Binary files /dev/null and b/ListenerCase.class differ diff --git a/Main.class b/Main.class new file mode 100644 index 0000000..1a41a79 Binary files /dev/null and b/Main.class differ diff --git a/MenuListener.class b/MenuListener.class new file mode 100644 index 0000000..09eac78 Binary files /dev/null and b/MenuListener.class differ diff --git a/NewGameListener.class b/NewGameListener.class new file mode 100644 index 0000000..f8deff6 Binary files /dev/null and b/NewGameListener.class differ diff --git a/SettingsListener.class b/SettingsListener.class new file mode 100644 index 0000000..295b098 Binary files /dev/null and b/SettingsListener.class differ