@Override
public void actionPerformed(ActionEvent e) {
if (RemoteClient.CONTEXT.start(ipField.getText())) {
// we connected
FrameManager.getInstance().scheduleInfoMessage("Connection successful");
RemoteClient.CONTEXT.addHandler(new LobbyHandler(chatHistory.getDocument(), lobbyListModel));
RemoteClient.CONTEXT.send(Message.GEN_LOGIN.createNew(new LoginData(Option.General_Version.get(), aliasField.getText())));
} else {
// we couldn't connect
FrameManager.getInstance().scheduleInfoMessage("Could not connect!");
}