Change default filename for paths.

This commit is contained in:
Holt59 2018-03-11 21:52:28 +01:00
parent 97775a9714
commit 80df87ba51

View File

@ -219,7 +219,7 @@ public class PathsPanel extends JPanel implements DrawingChangeListener, GraphCh
@Override
public void actionPerformed(ActionEvent e) {
String filepath = String.format("path_%s_%d_%d.path",
path.getGraph().getMapId().toLowerCase().replaceAll("[^a-z0-9_]", "_"),
path.getGraph().getMapId().toLowerCase().replaceAll("[^a-z0-9_]", ""),
path.getOrigin().getId(), path.getDestination().getId());
JFileChooser chooser = FileUtils.createFileChooser(FolderType.PathOutput,
filepath);