use of games.strategy.engine.lobby.client.ui.LobbyFrame 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