Re: [問題] fileChooser
※ 引述《TNC (code)》之銘言:
: 請問大家一個小問題
: 在使用file Chooser時
: 如何偵測到 file chooser內建的按鈕,是 "開啟" 還是"取消"被按下去呢?
FileChooser fileChooser = new FileChooser("c:\\");
if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
//開啟被按下去了
else
//取消
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 98.204.128.203
推
03/03 08:51, , 1F
03/03 08:51, 1F
討論串 (同標題文章)