code: public static Result selectDirectory(final String title,
  			final String directory) throws CanceledException {
  		return selectDirectory(title, directory, false);
  	}
docs: Blocks the current thread and waits for the result of the selection
  dialog. WARNING: Don't use this inside the Event Dispatching Thread
  (EDT)! This is only for usage outside the UI thread. The checkbox
  "include subdirectories" is not visible.
  
  @param title
  Title to display for the dialog.
  @param directory
  Initial directory.
  
  @return Selection result.
  
  @throws CanceledException
  The user canceled the dialog.