protected void onFileChoose ( JFileChooser fileChooser , ActionEvent actionEvent ) { final int returnVal = fileChooser . showOpenDialog ( parent ) ; if ( returnVal == JFileChooser . APPROVE_OPTION ) { final File file = fileChooser . getSelectedFile ( ) ; onApproveOption ( file , actionEvent ) ; } else { onCancel ( actionEvent ) ; } }
Callback method to interact on file choose .