看板java
標 題Re: [問題] 檔案路徑
發信站次世代BS2 (Tue Jun 13 08:34:31 2006)
轉信站ptt!ctu-reader!ctu-gate!news.nctu!news.ntu!news.ee.ttu!news.cis.nctu!B
用 JFileChooser.getSelectedFile() 會得到 File 物件
用 File 物件可得到 path
很多問題爬文不見得爬得到, 但找找 API doc 很快能有答案.
※ 引述《[email protected] (oopsy = oopsy)》之銘言:
> 之前爬過文
> 好像有看到類似的 不過我找不到了~"~
> 我用jFilechooser開啟檔案
> 想要得到檔案路徑(應該是字串吧?) 請問要怎麼寫呢?
--
▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw>
█▄▄▄▄█ █ ▄▄▄▄▄█ Player: Arjuna
▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: alumni.csie.nctu.edu.tw
☆ 次世代BS2 ☆ 可申請個人板
150MB 超大相簿 http://pic.bs2.to 資訊人 250MB