⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainframe.java~3~

📁 java中加密解密的用法全例子!这个对于爱好java的朋友对加密解密的学习很有用
💻 JAVA~3~
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -