摘要:
1、基本用法JFileChooser dlg = new JFileChooser();dlg.setDialogTitle("Open JPEG file");int result = dlg.showOpenDialog(this); // 打开"打开文件"对话框// int result = dlg.showSaveDialog(this); // 打"开保存文件"对话框if (result == JFileChooser.APPROVE_OPTION) {File file = dlg.getSelectedFile();.. 阅读全文