packagecom.yinyong.zip;importjava.io.File;importjava.io.FileInputStream;importjava.io.FileOutputStream;importjavax.swing.JFileChooser;importjavax.swing.UIManager;importor...
package com.yinyong.zip;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import javax.swing.JFileChooser;
import javax.swing.UIManager;
import org.apache.tools.zip.ZipEntry;
import org.apache.tools.zip.ZipOutputStream;
public class ZIPFolder {
File source_file, target_file;
JFileChooser jfc = new JFileChooser();
String parent = null, zippath = null;
byte buffer[] = new byte[512];
public ZIPFolder() {
try {
initFiles();
} catch (Exception e) {
e.printStackTrace();
}
}
private void initFiles() throws Exception {<