Package com.atlauncher.gui.dialogs

Examples of com.atlauncher.gui.dialogs.ProgressDialog.addThread()


                    Utils.delete(tempDir);
                    Utils.spreadOutResourceFiles(legacyDir);
                    dialog.close();
                }
            };
            dialog.addThread(thread);
            dialog.start();

        }
        LogManager.debug("Finished checking if using old format of resources");
    }
View Full Code Here


                LogManager.info("Logging into Minecraft!");
                final String pass = password;
                final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("account.loggingin"), 0,
                        Language.INSTANCE.localize("account.loggingin"), "Aborting login for " + account
                        .getMinecraftUsername());
                dialog.addThread(new Thread() {
                    public void run() {
                        dialog.setReturnValue(Authentication.checkAccount(account.getUsername(), pass, (account
                                .hasAccessToken() ? account.getClientToken() : null)));
                        dialog.close();
                    }
View Full Code Here

        updateData.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("common" + "" +
                        ".checkingforupdates"), 0, Language.INSTANCE.localize("common.checkingforupdates"),
                        "Aborting Update Check!");
                dialog.addThread(new Thread() {
                    public void run() {
                        if (App.settings.hasUpdatedFiles()) {
                            App.settings.reloadLauncherData();
                        }
                        dialog.close();
View Full Code Here

            final File file = new File(App.settings.getSkinsDir(), this.minecraftUsername + ".png");
            LogManager.info("Downloading skin for " + this.minecraftUsername);
            final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("account" + "" +
                    ".downloadingskin"), 0, Language.INSTANCE.localizeWithReplace("account.downloadingminecraftskin",
                    this.minecraftUsername), "Aborting downloading Minecraft skin for " + this.minecraftUsername);
            dialog.addThread(new Thread() {
                public void run() {
                    dialog.setReturnValue(false);
                    String skinURL = getSkinURL();
                    if (skinURL == null) {
                        if (!file.exists()) {
View Full Code Here

    public boolean isAccessTokenValid() {
        LogManager.info("Checking Access Token!");
        final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("account.checkingtoken"), 0,
                Language.INSTANCE.localize("account.checkingtoken"), "Aborting access token check for " + this
                .getMinecraftUsername());
        dialog.addThread(new Thread() {
            public void run() {
                dialog.setReturnValue(Authentication.checkAccessToken(accessToken));
                dialog.close();
            }
        });
View Full Code Here

    public AuthenticationResponse refreshToken() {
        LogManager.info("Refreshing Access Token!");
        final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("account.refreshingtoken"),
                0, Language.INSTANCE.localize("account.refreshingtoken"), "Aborting token refresh for " + this
                .getMinecraftUsername());
        dialog.addThread(new Thread() {
            public void run() {
                dialog.setReturnValue(Authentication.refreshAccessToken(Account.this));
                dialog.close();
            }
        });
View Full Code Here

                JOptionPane.ERROR_MESSAGE, null, options, options[0]);
        if (ret == 0) {
            final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("tools.networkchecker"),
                    App.settings.getServers().size(), Language.INSTANCE.localize("tools.networkchecker" + "" +
                    ".running"), "Network Checker Tool Cancelled!");
            dialog.addThread(new Thread() {
                @Override
                public void run() {
                    dialog.setTotalTasksToDo(App.settings.getServers().size() * 5);
                    StringBuilder results = new StringBuilder();

View Full Code Here

                    LogManager.info("Logging into Minecraft!");
                    final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("account" + "" +
                            ".loggingin"), 0, Language.INSTANCE.localize("account.loggingin"),
                            "Aborting login for " + usernameField.getText());
                    dialog.addThread(new Thread() {
                        public void run() {
                            AuthenticationResponse resp = Authentication.checkAccount(usernameField.getText(),
                                    new String(passwordField.getPassword()));
                            dialog.setReturnValue(resp);
                            dialog.close();
View Full Code Here

        final Type theType = type;
        final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("settings" + "" +
                ".checkingproxytitle"), 0, Language.INSTANCE.localize("settings.checkingproxy"),
                "Cancelled Proxy Test!");
        dialog.addThread(new Thread() {
            @Override
            public void run() {
                dialog.setReturnValue(Utils.testProxy(new Proxy(theType, new InetSocketAddress(proxyHost.getText(),
                        Integer.parseInt(proxyPort.getText().replaceAll("[^0-9]", ""))))));
                dialog.close();
View Full Code Here

                        "")) == null && clonedName.replaceAll("[^A-Za-z0-9]", "").length() >= 1) {

                    final String newName = clonedName;
                    final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("instance" + "" +
                            ".clonetitle"), 0, Language.INSTANCE.localize("instance.cloninginstance"), null);
                    dialog.addThread(new Thread() {
                        @Override
                        public void run() {
                            App.settings.cloneInstance(instance, newName);
                            dialog.close();
                            App.TOASTER.pop(Language.INSTANCE.localizeWithReplace("instance.clonedsuccessfully",
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.