use of games.strategy.engine.config.client.LobbyServerPropertiesFetcher in project triplea by triplea-game.
the class MetaSetupPanel method connectToLobby.
private void connectToLobby() {
final LobbyServerProperties lobbyServerProperties = new LobbyServerPropertiesFetcher().fetchLobbyServerProperties();
final LobbyLogin login = new LobbyLogin(JOptionPane.getFrameForComponent(this), lobbyServerProperties);
final LobbyClient client = login.login();
if (client == null) {
return;
}
final LobbyFrame lobbyFrame = new LobbyFrame(client, lobbyServerProperties);
GameRunner.hideMainFrame();
lobbyFrame.setVisible(true);
}
Aggregations