}
protected File selectDataMap(Frame f) {
// find start directory in preferences
FSPath lastDir = getApplication().getFrameController().getLastDirectory();
// configure dialog
JFileChooser chooser = new JFileChooser();
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
lastDir.updateChooser(chooser);
chooser.addChoosableFileFilter(FileFilters.getDataMapFilter());
int status = chooser.showDialog(f, "Select DataMap");
if (status == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
// save to preferences...
lastDir.updateFromChooser(chooser);
return file;
}
return null;