file chooser implemented with default directory location in windows.

This commit is contained in:
Josh Ashton
2024-03-21 13:25:02 -06:00
parent 93c838ea68
commit a053c98a7b
5 changed files with 151 additions and 12 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import java.util.Scanner;
import java.io.File;
@@ -20,7 +21,7 @@ public class Settings {
// settings, effectively toggles. If the file does not exist,
// populate it with the following values (possibly in .json).
newFileProperties = 0;
defaultDirectory = "~/AppData/Local/sudoku/";
defaultDirectory = "C:\\Users\\jashton\\AppData\\Local\\Sudoku"; // TODO: This is a Windows default. Need OS detection.
}
/**