Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tristan MAISONNEUVE
projetS2-2021-23-LJ
Commits
02ddc01a
Commit
02ddc01a
authored
Jun 24, 2021
by
Benjamin VU
Browse files
Code couleur
parent
faa54a79
Changes
2
Hide whitespace changes
Inline
Side-by-side
out/production/battleship-student-project-2021/vue/FenetreJeux.class
View file @
02ddc01a
No preview for this file type
src/vue/FenetreJeux.java
View file @
02ddc01a
...
...
@@ -23,6 +23,9 @@ public class FenetreJeux extends JFrame {
//initialisation de tout les widget
private
JTextArea
zoneMessage
;
private
JLabel
bleu
;
private
JLabel
orange
;
private
JLabel
rouge
;
...
...
@@ -111,6 +114,18 @@ public class FenetreJeux extends JFrame {
principal
.
add
(
bas
,
BorderLayout
.
SOUTH
);
//qu'on ajoute au panel principale
JPanel
zoneCodeCouleur
=
new
JPanel
(
new
GridLayout
(
2
,
1
));
bleu
=
new
JLabel
(
"Si la case est bleu, vous n'avez rien touché"
);
rouge
=
new
JLabel
(
"Si la case est rouge, vous avez touché le bateau"
);
zoneCodeCouleur
.
add
(
bleu
);
zoneCodeCouleur
.
add
(
rouge
);
principal
.
add
(
zoneCodeCouleur
,
BorderLayout
.
SOUTH
);
}
public
static
Coord
getCoco
()
{
return
coco
;}
...
...
Write
Preview
Markdown
is supported
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