Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Loïc Perine
ProjetS2-2021-20-JMM
Commits
2329fbe3
Commit
2329fbe3
authored
Jun 24, 2021
by
L.Perine
Browse files
Merge branch 'master' of
https://gitlab.univ-nantes.fr/L.Perine/projets2-2021-20-jmm.git
parents
bcb10f8e
a10ef9e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
img/interface/icone_bouton/battleship.png
deleted
100644 → 0
View file @
bcb10f8e
1.36 KB
src/info1/Vue/PageJeu.java
View file @
2329fbe3
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment