Package com.atlauncher.gui.dialogs

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


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

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


                        dialog.setReturnValue(Authentication.checkAccount(account.getUsername(), pass, (account
                                .hasAccessToken() ? account.getClientToken() : null)));
                        dialog.close();
                    }
                });
                dialog.start();
                sess = (AuthenticationResponse) dialog.getReturnValue();
            }
            if (sess == null) {
                sess = new AuthenticationResponse("token:0:0", false);
            } else if (sess.hasError()) {
View Full Code Here

                            App.settings.reloadLauncherData();
                        }
                        dialog.close();
                    }
                });
                dialog.start();
            }
        });
        username.addItemListener(new ItemListener() {
            public void itemStateChanged(ItemEvent e) {
                if (e.getStateChange() == ItemEvent.SELECTED) {
View Full Code Here

                        App.settings.reloadAccounts();
                    }
                    dialog.close();
                }
            });
            dialog.start();
            if (!(Boolean) dialog.getReturnValue()) {
                String[] options = {Language.INSTANCE.localize("common.ok")};
                JOptionPane.showOptionDialog(App.settings.getParent(), Language.INSTANCE.localize("account" + "" +
                                ".skinerror"), Language.INSTANCE.localize("common.error"),
                        JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE, null, options, options[0]);
View Full Code Here

            public void run() {
                dialog.setReturnValue(Authentication.checkAccessToken(accessToken));
                dialog.close();
            }
        });
        dialog.start();
        if ((Boolean) dialog.getReturnValue() == null) {
            return false;
        }
        return (Boolean) dialog.getReturnValue();
    }
View Full Code Here

            public void run() {
                dialog.setReturnValue(Authentication.refreshAccessToken(Account.this));
                dialog.close();
            }
        });
        dialog.start();
        return (AuthenticationResponse) dialog.getReturnValue();
    }

    public String getClientToken() {
        return (this.clientToken == null ? "0" : this.clientToken);
View Full Code Here

                    dialog.doneTask();
                    dialog.setReturnValue(true);
                    dialog.close();
                }
            });
            dialog.start();
            if (dialog.getReturnValue() == null || !(Boolean) dialog.getReturnValue()) {
                LogManager.error("Network Test failed to run!");
            } else {
                LogManager.info("Network Test ran and submitted to ATLauncher!");
                String[] options2 = {Language.INSTANCE.localize("common.ok")};
View Full Code Here

                                    new String(passwordField.getPassword()));
                            dialog.setReturnValue(resp);
                            dialog.close();
                        }
                    });
                    dialog.start();
                    AuthenticationResponse response = (AuthenticationResponse) dialog.getReturnValue();
                    if (response != null && !response.hasError()) {

                        if (accountsComboBox.getSelectedIndex() == 0) {
                            account = new Account(username, password, response.getSelectedProfile().getName(),
View Full Code Here

                dialog.setReturnValue(Utils.testProxy(new Proxy(theType, new InetSocketAddress(proxyHost.getText(),
                        Integer.parseInt(proxyPort.getText().replaceAll("[^0-9]", ""))))));
                dialog.close();
            }
        });
        dialog.start();

        if (dialog.getReturnValue() == null) {
            return false;
        }
View Full Code Here

                            dialog.close();
                            App.TOASTER.pop(Language.INSTANCE.localizeWithReplace("instance.clonedsuccessfully",
                                    instance.getName()));
                        }
                    });
                    dialog.start();
                } else if (clonedName == null || clonedName.equals("")) {
                    LogManager.error("Error Occured While Cloning Instance! Dialog Closed/Cancelled!");
                    JOptionPane.showMessageDialog(App.settings.getParent(), "<html><p align=\"center\">" + Language
                            .INSTANCE.localizeWithReplace("instance.errorclone", instance.getName() + "<br/><br/>") +
                            "</p></html>", Language.INSTANCE.localize("common.error"), JOptionPane.ERROR_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.