code: public static JFileChooser getFileChooser(final String id) {
          JFileChooser chooser = new JFileChooser();
          track(chooser, "FileChooser." + id + ".path");
          return chooser;
      }
docs: Gets the file chooser with the given id. Its current directory will be
  tracked and restored on subsequent calls.
  
  @param id
  @return the file chooser with the given id