📄 mainframe.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 + -