//Shows the file save dialog
JFileChooser f = new JFileChooser();
f.setDialogTitle("Select project path");
f.setAcceptAllFileFilterUsed(false);
f.setFileFilter(new ProjectFileFilter());
f.setMultiSelectionEnabled(false);
if (f.showSaveDialog(dialog) == JFileChooser.APPROVE_OPTION) {
if (f.getSelectedFile().getAbsolutePath().endsWith(".sumo.prj")) {
getTxtSave().setText(f.getSelectedFile().getAbsolutePath());