Use code tags, please.

JFileChooser is a dialog. Therefore, it returns its results as an int value, as like in the following



JFileChooser fc = new JFileChooser();
int returnval =...