JFileChooser chooser = proj.createChooser();
File oldSelected = factory.getCurrentImage(instance);
if (oldSelected != null) chooser.setSelectedFile(oldSelected);
chooser.setDialogTitle(Strings.get("ramSaveDialogTitle"));
int choice = chooser.showSaveDialog(frame);
if (choice == JFileChooser.APPROVE_OPTION) {
File f = chooser.getSelectedFile();
try {
HexFile.save(f, s.getContents());
factory.setCurrentImage(instance, f);