private String selectDirectory(final Window parent) {
    final DirectoryChooser selector = new DirectoryChooser("Choose Destination Directory");
    selector.setCurrentDirectory(new File(destinationChooserPanel.getText()));

    if (selector.showOpenDialog(parent) == DirectoryChooser.APPROVE_OPTION) {
      return selector.getSelectedFile().getAbsolutePath();
    }

    return null;
  }
Dialog to export the current view into a variety of formats.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/ExportViewDialog.java