mainframe.java~2~

来自「java中加密解密的用法全例子!这个对于爱好java的朋友对加密解密的学习很有用」· JAVA~2~ 代码 · 共 39 行

JAVA~2~
39
字号
package encryptandunencrypt;

import java.io.File;
import javax.swing.JFrame;
import javax.swing.JFileChooser;

public class MainFrame {
    private JFileChooser fileChooser = null;

    public MainFrame() {
    }

    public void run() {
        fileChooser = new JFileChooser("C:\\Java");
        int result = fileChooser.showOpenDialog(new JFrame());
        if (result == JFileChooser.APPROVE_OPTION) {

            File file = fileChooser.getSelectedFile();
            XMLPath path = new XMLPath();
            String filePath = null;

            boolean unZipSuccess = false;
            try {
                UnZip unZipFile = new UnZip();
                unZipSuccess = unZipFile.unZipFile(file.getPath());
//                UnEncrypt unEnc = new UnEncrypt();
//                unEnc.UnEncrypt();
            } catch (Exception ex) {
            }

            if (!unZipSuccess) {
                System.err.println("unZip success!");
                return;
            }
        }
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?