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
92ece3c1
Commit
92ece3c1
authored
Jun 23, 2021
by
Jolan RENOUX
Browse files
maj vue4
parent
23744b35
Changes
2
Hide whitespace changes
Inline
Side-by-side
out/production/battleship-student-project-2021/vue/FenetreConnexion.class
View file @
92ece3c1
No preview for this file type
src/vue/FenetreConnexion.java
View file @
92ece3c1
...
@@ -128,13 +128,20 @@ public class FenetreConnexion extends JFrame {
...
@@ -128,13 +128,20 @@ public class FenetreConnexion extends JFrame {
bouttons
[
i
].
getButton
().
setEnabled
(
false
);
bouttons
[
i
].
getButton
().
setEnabled
(
false
);
}
}
}
}
}
else
{
}
else
if
(
flotte
.
add
(
c
.
TestCreation
())==-
2
)
{
JOptionPane
.
showMessageDialog
(
null
,
"Flotte déja pleine"
);
JOptionPane
.
showMessageDialog
(
null
,
"Flotte déja pleine"
);
for
(
int
i
=
0
;
i
<
100
;
i
++){
for
(
int
i
=
0
;
i
<
100
;
i
++){
if
(
bouttons
[
i
].
getString
().
equals
(
co
[
0
])){
if
(
bouttons
[
i
].
getString
().
equals
(
co
[
0
])){
bouttons
[
i
].
getButton
().
setBackground
(
Color
.
WHITE
);
bouttons
[
i
].
getButton
().
setBackground
(
Color
.
WHITE
);
}
}
}
}
}
else
{
JOptionPane
.
showMessageDialog
(
null
,
"les bateux ne doivent pas se chevaucher"
);
for
(
int
i
=
0
;
i
<
100
;
i
++){
if
(
bouttons
[
i
].
getString
().
equals
(
co
[
0
])){
bouttons
[
i
].
getButton
().
setBackground
(
Color
.
WHITE
);
}
}
}
}
}
else
{
}
else
{
for
(
int
i
=
0
;
i
<
100
;
i
++){
for
(
int
i
=
0
;
i
<
100
;
i
++){
...
@@ -209,6 +216,8 @@ public class FenetreConnexion extends JFrame {
...
@@ -209,6 +216,8 @@ public class FenetreConnexion extends JFrame {
}
}
});
});
creerPartie
.
addActionListener
(
new
ActionListener
()
{
creerPartie
.
addActionListener
(
new
ActionListener
()
{
@Override
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
...
...
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