文件保存不知道存哪了 jFileChooser使用方法?
jFileChooser使用方法?JFileChooserjFileChooser=newJFileChooser()inti=jFileChooser.showOpenDialog(null)如果(
jFileChooser使用方法?
JFileChooserjFileChooser=newJFileChooser()inti=jFileChooser.showOpenDialog(null)如果(i==jFileChooser.APPROVE選項(xiàng)){//打開文件stringpath=jFileChooser.getSelectedFile文件().getAbsolutePath()字符串名稱=jFileChooser.getSelectedFile文件().getName()系統(tǒng)輸出打?。ā爱?dāng)前文件路徑:”路徑“n當(dāng)前文件名:”名稱)}否則{系統(tǒng)輸出打?。ā拔催x擇文件”}