Exemplo n.º 1
0
  /** Get the default folder */
  public File getDefaultFolder() {
    final File recentFolder = _folderTracker.getMostRecentFile();

    if (recentFolder != null && recentFolder.exists()) {
      if (_subfolderName != null) {
        final File defaultFolder = new File(recentFolder, _subfolderName);
        if (!defaultFolder.exists()) {
          defaultFolder.mkdir();
        }
        return defaultFolder;
      } else {
        return recentFolder;
      }
    }

    return null;
  }
Exemplo n.º 2
0
 /** Determine if the default folder has been specified. */
 public boolean defaultFolderSpecified() {
   return _folderTracker.getMostRecentFile() != null;
 }