|
|
public class SaveGameFileChooser extends JFileChooser | public class SaveGameFileChooser extends JFileChooser |
{ | { |
| |
public static final File DEFAULT_DIRECTORY = new File(GameRunner.getRootFolder(), "/savedGames/"); |
public static final File DEFAULT_DIRECTORY = new File(System.getProperties().get("user.home") + "/.triplea/", "/savedGames/"); |
public static final String AUTOSAVE_FILE_NAME = "autosave.svg"; | public static final String AUTOSAVE_FILE_NAME = "autosave.svg"; |
| |
private static SaveGameFileChooser s_instance; | private static SaveGameFileChooser s_instance; |
|
|
{ | { |
try | try |
{ | { |
DEFAULT_DIRECTORY.mkdir(); |
DEFAULT_DIRECTORY.mkdirs(); |
} catch(Exception e){e.printStackTrace();} | } catch(Exception e){e.printStackTrace();} |
} | } |
} | } |