276277278279280281282
creditButton.setEnabled(b); } private void login() { checkVersion(); new LoginDialog(StendhalFirstScreen.this, client).setVisible(true); }
264265266267268269270271272273274
final Profile profile = Profile.createFromCommandline(args); SwingUtilities.invokeLater(new Runnable() { public void run() { if (profile.isValid()) { new LoginDialog(null, client).connect(profile); } else { new StendhalFirstScreen(client); } } });