public void downloadUpdate() {
        button.setEnabled(false);
        downloader = new Thread(new Runnable() {
            @Override
            public void run() {
                double size = updater.getFileSize("http://nazatar.bplaced.net/Mod/Unreal.jar/Unreal.jar");
                Update.label_6.setText("" + size);
                int test = updater.DownloadUrlPool("Unreal.jar_Downloaded", "Unreal.jar", progressBar);
                switch (test) {
                    case -1:
                        Update.label_6.setText("ERROR");
                        JOptionPane.showMessageDialog(null, "Error while downloading.");

                        break;
                    case 0:
                        Update.label_6.setText("ABORTED");
                        JOptionPane.showMessageDialog(null, "Download aborted");
                        break;
                    case 1:
                        Update.label_6.setText("Finished");
                        try {
                            Misc.copyFile(new java.io.File("Unreal.jar_DOWNLOADED"), new java.io.File("Unreal.jar"));
                        } catch (IOException e) {
                            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
                        }
                        ;
                        JOptionPane.showMessageDialog(null, "Download succesfull, please restart the Mod");
                        System.exit(-1);
                        break;
                }
            }
        });
        downloader.start();
    }