Commit 2329fbe3 authored by L.Perine's avatar L.Perine
Browse files
parents bcb10f8e a10ef9e4
...@@ -82,9 +82,17 @@ public class PageJeu extends JPanel { ...@@ -82,9 +82,17 @@ public class PageJeu extends JPanel {
//!pour set les images c'est de là //!pour set les images c'est de là
try { try {
confirmer.setIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/boutonShoot1.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH))); confirmer.setIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/boutonShoot1.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
confirmer.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonShoot1Hover.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
confirmer.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonShoot1Pressed.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
} catch (IOException e) { } catch (IOException e) {
System.out.println("problem loading image: "+"img/interface/bouton/boutonShoot1.png"); System.out.println("problem loading image: "+"img/interface/bouton/boutonShoot1.png");
System.out.println("problem loading image: "+"img/interface/bouton/boutonShootHover1.png");
System.out.println("problem loading image: "+"img/interface/bouton/boutonShoot1Pressed.png");
} }
//!à là //!à là
sud.add(confirmer); sud.add(confirmer);
sud.setAlignmentX(Component.CENTER_ALIGNMENT); sud.setAlignmentX(Component.CENTER_ALIGNMENT);
......
Supports Markdown
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