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
869ae2cf
Commit
869ae2cf
authored
Jun 24, 2021
by
Jolan RENOUX
Browse files
maj vue10
parent
6adb4731
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vue/FenetreConnexion.java
View file @
869ae2cf
...
...
@@ -27,6 +27,9 @@ import java.util.function.BiPredicate;
public
class
FenetreConnexion
extends
JFrame
{
private
boolean
valider
=
false
;
private
Game
jeu
;
private
JTextField
pseudo
;
private
JButton
envoyepseudo
;
private
JComboBox
pInitialise
;
...
...
@@ -223,18 +226,16 @@ public class FenetreConnexion extends JFrame {
rejoindre
.
addActionListener
(
e
->
{
rejoindre
.
addActionListener
(
new
ActionListener
()
{
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
}
});
creerPartie
.
addActionListener
(
new
ActionListener
()
{
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
try
{
for
(
Game
g
:
Network
.
listInitializedGames
(
"http://37.187.38.219/api/v0"
)){
pInitialise
.
addItem
(
g
);
}
}
catch
(
UnirestException
unirestException
)
{
unirestException
.
printStackTrace
();
}
}
...
...
@@ -301,6 +302,7 @@ public class FenetreConnexion extends JFrame {
// Les getters
public
String
getPseudo
(){
return
pseudo
.
getText
();
}
public
boolean
isValider
()
{
return
valider
;}
public
Game
getJeu
()
{
return
jeu
;}
// public Integer getGameID(){ return gameId; }
public
NavyFleet
getFlotte
(){
return
flotte
;}
...
...
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