FlowPane gamePane = new FlowPane(Orientation.VERTICAL);
Label gameLabel = new Label("Liste des parties :");
_gameListView = new ListView();
_gameListView.getSelectionModel().selectedItemProperty()
.addListener(new ChangeListener<String>() {
public void changed(ObservableValue<? extends String> ov,
String old_val, String new_val) {
_controller.execute("roomDisconnect",
new Object[] { _user });
_action = "join";
_game = new_val.split(" ")[0];
_adresse = new_val.split(" ")[1];
refreshTimeLine.stop();
close();
}
});
FlowPane playerPane = new FlowPane(Orientation.VERTICAL);
Label playerLabel = new Label("Liste des joueurs connect�s");
_playerListView = new ListView();
gamePane.getChildren().addAll(gameLabel, _gameListView);
borderPane.setCenter(gamePane);
playerPane.getChildren().addAll(playerLabel, _playerListView);