private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
        //Botón encriptar
        if (res == null){
            JOptionPane.showMessageDialog(null, "No se ha elegido ninguna opción");
        }else{
            Fechas fec = res;
            StringTokenizer token = new StringTokenizer(copia(), "/");
            String day = token.nextToken();
            String hour = token.nextToken();
            String install = System.getProperty("user.home") + "\\Desktop\\Copia Minecraft\\" + day + "\\" + hour;
            try {
                File zi = new File(install + "\\data.dat");
                if (zi.exists()){
                    throw new Exception("Ya está encriptado");
                }
                ZipFile zip = new ZipFile(zi);
                File mine = new File(install + "\\.minecraft");
                ZipParameters par = new ZipParameters();
                par.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);
                par.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_ULTRA);
                par.setEncryptFiles(true);
                par.setEncryptionMethod(Zip4jConstants.ENC_METHOD_AES);
                par.setAesKeyStrength(Zip4jConstants.AES_STRENGTH_256);
                par.setPassword("Minelogin 3.0.0");
                zip.createZipFileFromFolder(mine, par, false, 0);
                borrarFichero(mine);
                mine.delete();
                decriptada.remove(fec);
                int i = 0;
                for (; i < encriptada.size(); i++){
                    if (!encriptada.get(i).compare(fec)){
                        encriptada.add(i, fec);
                        break;
                    }
                }
                if (i == encriptada.size()){
                    encriptada.add(fec);
                }
                update();
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(null, ex.getMessage());
            }
        }
    }//GEN-LAST:event_jButton3ActionPerformed