Search in sources :

Example 1 with LobbyFrame

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);
}
Also used : LobbyClient(games.strategy.engine.lobby.client.LobbyClient) LobbyServerProperties(games.strategy.engine.lobby.client.login.LobbyServerProperties) LobbyServerPropertiesFetcher(games.strategy.engine.config.client.LobbyServerPropertiesFetcher) LobbyFrame(games.strategy.engine.lobby.client.ui.LobbyFrame) LobbyLogin(games.strategy.engine.lobby.client.login.LobbyLogin)

Aggregations

LobbyServerPropertiesFetcher (games.strategy.engine.config.client.LobbyServerPropertiesFetcher)1 LobbyClient (games.strategy.engine.lobby.client.LobbyClient)1 LobbyLogin (games.strategy.engine.lobby.client.login.LobbyLogin)1 LobbyServerProperties (games.strategy.engine.lobby.client.login.LobbyServerProperties)1 LobbyFrame (games.strategy.engine.lobby.client.ui.LobbyFrame)1