title: JavaFX FileChooser select files and/or directories?
body: <p>JavaFX allows selecting a file via FileChooser and selecting a directory via DirectoryChooser, but how do I allow it to select both at once? </p>
  
  <p>Something like Swing's JFileChooser.FILES_AND_DIRECTORIES option.</p>
  
  <p>Currently I'm just using JFileChooser directly, but it's not exactly a good visual match:</p>
  
  <pre><code>JFileChooser chooser = new JFileChooser(".");
  chooser.setMultiSelectionEnabled(true);
  chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
  int ret = chooser.showOpenDialog(null);
  if(ret == JFileChooser.APPROVE_OPTION) {
      File[] files = chooser.getSelectedFiles();
      ...
  }
  </code></pre>