}
@Override
public void performAction(ActionEvent e) {
// 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.setAcceptAllFileFilterUsed(false);
String ext = "png";
chooser.addChoosableFileFilter(FileFilters.getExtensionFileFilter(ext, "PNG Images"));
int status = chooser.showSaveDialog(Application.getFrame());
if (status == JFileChooser.APPROVE_OPTION) {
lastDir.updateFromChooser(chooser);
String path = chooser.getSelectedFile().getPath();
if (!path.endsWith("." + ext)) {
path += "." + ext;
}