Package games.stendhal.client.gui

Examples of games.stendhal.client.gui.ProgressBar.cancel()


          client.connect(server, finalPort);
          // for each major connection milestone call step()
          progressBar.step();
        } catch (final Exception ex) {
          // if something goes horribly just cancel the progress bar
          progressBar.cancel();
          setEnabled(true);
          JOptionPane.showMessageDialog(
              owner,
              "Unable to connect to server to create your account. The server may be down or, if you are using a custom server, " +
              "you may have entered its name and port number incorrectly.");
View Full Code Here


          if (result.failed()) {
            /*
             * If the account can't be created, show an error
             * message and don't continue.
             */
            progressBar.cancel();
            setEnabled(true);
            JOptionPane.showMessageDialog(owner,
                result.getResult().getText(),
                "Create account failed",
                JOptionPane.ERROR_MESSAGE);
View Full Code Here

            }

            stendhal.setDoLogin();
          }
        } catch (final TimeoutException e) {
          progressBar.cancel();
          setEnabled(true);
          JOptionPane.showMessageDialog(
              owner,
              "Unable to connect to server to create your account. The server may be down or, if you are using a custom server, you may have entered its name and port number incorrectly.",
              "Error Creating Account", JOptionPane.ERROR_MESSAGE);
View Full Code Here

          JOptionPane.showMessageDialog(
              owner,
              "Unable to connect to server to create your account. The server may be down or, if you are using a custom server, you may have entered its name and port number incorrectly.",
              "Error Creating Account", JOptionPane.ERROR_MESSAGE);
        } catch (final InvalidVersionException e) {
          progressBar.cancel();
          setEnabled(true);
          JOptionPane.showMessageDialog(
              owner,
              "You are running an incompatible version of Stendhal. Please update",
              "Invalid version", JOptionPane.ERROR_MESSAGE);
View Full Code Here

          JOptionPane.showMessageDialog(
              owner,
              "You are running an incompatible version of Stendhal. Please update",
              "Invalid version", JOptionPane.ERROR_MESSAGE);
        } catch (final BannedAddressException e) {
          progressBar.cancel();
          setEnabled(true);
          JOptionPane.showMessageDialog(
              owner,
              "Your IP is banned. If you think this is not right, please send a Support Request to http://sourceforge.net/tracker/?func=add&group_id=1111&atid=201111",
              "IP Banned", JOptionPane.ERROR_MESSAGE);
View Full Code Here

          JOptionPane.showMessageDialog(
              owner,
              "Your IP is banned. If you think this is not right, please send a Support Request to http://sourceforge.net/tracker/?func=add&group_id=1111&atid=201111",
              "IP Banned", JOptionPane.ERROR_MESSAGE);
        } catch (final LoginFailedException e) {
          progressBar.cancel();
          setEnabled(true);
          JOptionPane.showMessageDialog(owner, e.getMessage(),
              "Login failed", JOptionPane.INFORMATION_MESSAGE);
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.