private static void downloadClient(){
		    try{
			LauncherFrame.notificationLabel.setText("Download del client in corso ... 0%");
			URL url = new URL(Settings.updateFile);
			HttpURLConnection connection = (HttpURLConnection) url.openConnection();
			int filesize = connection.getContentLength();
			float totalDataRead = 0;
			BufferedInputStream in = new java.io.BufferedInputStream(connection.getInputStream());
			FileOutputStream fos = new FileOutputStream(Util.getWorkingDirectory() + File.separator + "update.zip");
			BufferedOutputStream bout = new BufferedOutputStream(fos, 1024);
			byte[] data = new byte[1024];
			int i = 0;
			System.out.println("Downloading " + Settings.updateFile);
            while ((i = in.read(data, 0, 1024)) >= 0) {
            	
				totalDataRead = totalDataRead + i;
				bout.write(data, 0, i);
				float Percent = (totalDataRead * 100) / filesize;
			    LauncherFrame.progressBar.setValue((int) Percent);
			    LauncherFrame.notificationLabel.setText("Download del client in corso ... " + (int) Percent + "%");
			    
			}
            bout.close();
			fos.close();
			in.close();
			connection.disconnect();
			String strZipFile = Util.getWorkingDirectory() + File.separator + "update.zip";
	        if (strZipFile == null || strZipFile.equals("")) {
				System.out.println("Invalid source file");
				System.exit(0);
			} else {
				unzip(strZipFile);
			}
	        
		} catch (Exception e) {
			LauncherFrame.notificationLabel.setText("Errore nel download del client!");
			e.printStackTrace();
		}

	}