laatste versie

This commit is contained in:
unknown
2015-04-08 15:56:46 +02:00
parent c2cb07cf3e
commit 69c05da3fd
18 changed files with 726 additions and 215 deletions
+6 -6
View File
@@ -23,7 +23,7 @@ public class SaveLoad {
fileChooser.setFileFilter(new FileFilter() {
@Override
public boolean accept(File pathname) {
if(pathname.isFile() && pathname.getName().endsWith(".ter"))
if(pathname.isFile() && pathname.getName().endsWith(".agn"))
{
return true;
}else if(pathname.isDirectory()){return true;}else{return false;}
@@ -31,7 +31,7 @@ public class SaveLoad {
@Override
public String getDescription() {
return ".ter";
return ".agn";
}
});
@@ -41,9 +41,9 @@ public class SaveLoad {
if(userSelection == JFileChooser.APPROVE_OPTION)
{
File file = fileChooser.getSelectedFile();
if(!file.getName().endsWith(".ter"))
if(!file.getName().endsWith(".agn"))
{
file = new File(file.getAbsolutePath() + ".ter");
file = new File(file.getAbsolutePath() + ".agn");
}
if(file.exists())
@@ -82,7 +82,7 @@ public class SaveLoad {
fileChooser.setFileFilter(new FileFilter() {
@Override
public boolean accept(File pathname) {
if(pathname.isFile() && pathname.getName().endsWith(".ter"))
if(pathname.isFile() && pathname.getName().endsWith(".agn"))
{
return true;
}else if(pathname.isDirectory()){return true;}else{return false;}
@@ -90,7 +90,7 @@ public class SaveLoad {
@Override
public String getDescription() {
return ".ter";
return ".agn";
}
});