文件保存不知道存哪了 jFileChooser使用方法?
jFileChooser使用方法?JFileChooserjFileChooser=newJFileChooser()inti=jFileChooser.showOpenDialog(null)如果(
jFileChooser使用方法?
JFileChooserjFileChooser=newJFileChooser()inti=jFileChooser.showOpenDialog(null)如果(i==jFileChooser.APPROVE选项){//打开文件stringpath=jFileChooser.getSelectedFile文件().getAbsolutePath()字符串名称=jFileChooser.getSelectedFile文件().getName()系统输出打印(“当前文件路径:”路径“n当前文件名:”名称)}否则{系统输出打印(“未选择文件”}