title: JavaFX FileChooser: how to set file filters?
body: <p>I want to set file filters in a JavaFX FileChooser but I could not find a way to do it. </p>
  
  <p>My code:</p>
  
  <pre><code>  FileChooser fc = new FileChooser();
    fc.setTitle("My File Chooser");
    File f = fc.showOpenDialog(primaryStage);
    System.out.println(f);
  </code></pre>