private void download(URL url, String dest) {
        try {
            lName.setText(Data.text("download-connect"));

            url.openConnection();
            InputStream reader = url.openStream();

            FileOutputStream writer = new FileOutputStream(dest);
            byte[] buffer = new byte[153600];
            int totalBytesRead = 0;
            int bytesRead = 0;

            lName.setText(Data.text("download-download"));
            Progress.setIndeterminate(false);
            while ((bytesRead = reader.read(buffer)) > 0) {  
                writer.write(buffer, 0, bytesRead);
                buffer = new byte[153600];
                totalBytesRead += bytesRead;
                int val = Progress.getValue()+2;
                if(Progress.getMaximum()>=val) Progress.setValue(val);
            }
            lName.setText(Data.text("download-restart"));
            
            writer.close();
            reader.close();
        } catch (MalformedURLException ex) {
            logger.log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            logger.log(Level.SEVERE, null, ex);
        }
        logger.log(Level.FINE, "Updated jar downloaded from <" + url + "> to <" + dest + ">");
    }