int res = dlg.showOpenDialog(this);
if (res == JFileChooser.APPROVE_OPTION){
cfg.setLastOpenDialogPath(dlg.getCurrentDirectory());
try {
File farmFile = dlg.getSelectedFile();
FarmParser parser = new FarmParser(farmFile);
parser.read();
DirectoryLocator.getDirectory(DirectoryVidalFarm.class, true);
} catch (FileNotFoundException ex) {
MessageBox.showExceptionOnly(ex);
} catch (IOException ex) {
MessageBox.showExceptionOnly(ex);