小常识,就是总是忘,干脆整理下:
JFileChooser fileChser = new JFileChooser();
fileChser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int chooseFlag = fileChser.showOpenDialog(con);
if (JFileChooser.APPROVE_OPTION == chooseFlag) {
}
mb64ba3d3eaebce 博主文章分类:Swing ©著作权
文章标签 JFileChooser 文件夹 显示 文章分类 HarmonyOS 后端开发
小常识,就是总是忘,干脆整理下:
JFileChooser fileChser = new JFileChooser();
fileChser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int chooseFlag = fileChser.showOpenDialog(con);
if (JFileChooser.APPROVE_OPTION == chooseFlag) {
}
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M