public File getFile(){
final JFileChooser fc = new JFileChooser();
fc
// JFileChooser
// JFileChooser
int returnVal = fc
File file_choosed = fc
return file_choosed;
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/27130.html