Commit d48de351 authored by Léo DUBOIS--JULIENNE's avatar Léo DUBOIS--JULIENNE
Browse files

.

parent e66bfad6
......@@ -224,5 +224,4 @@ public class OptPartie extends JPanel {
//_____________________________________________listeners_____________________________________________//
public void FixeListenerCreation(ActionListener listener)
{creerPartie.addActionListener(listener);}
}
......@@ -111,4 +111,16 @@ public class Resultat extends JDialog {
public void fixeRejouerListener(ActionListener action) {
rejouer.addActionListener(action);
}
try {
rejouer= new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/resultat/BoutonRejouer1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/resultat/BoutonRejouer1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/resultat/BoutonRejouer1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte.setPreferredSize(DIMENSION_BOUTTONS);
} catch (IOException e) {
System.out.println("erreur lors du chargement d'une image");
e.printStackTrace();
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment