I have simple Java Swing application which uses zip4j to encrypt and unpack zip file. It\'s done by this part of code:
ZipFile zipFile = new ZipFile(\"dataStorag
Wrap the call pbEncryptionProgress.setValue(progressMonitor.getPercentDone()); in SwingUtilities.invokeAndWait
pbEncryptionProgress.setValue(progressMonitor.getPercentDone());
SwingUtilities.invokeAndWait