Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8125959

FileSaveService.saveFileDialog needs some update

XMLWordPrintable

        The problems reported as a part of http://javafx-jira.kenai.com/browse/RT-20270:

        Kiril added a comment - May, 4 2012 09:16 AM - edited

        The extension filter needs an improvement...it does not act as a filter at the moment

        1.) It does not filter the contents of the current folder depending on the current filetype
        Usually when a png filter is specified (there's a "[png]" value in the "Save as type" box) I would expect to see all png files in the current folder(this is the defaul behavior in windows)

        2.) the extension is not appended to the filename:
        If a png filter is specified as a filetype, then when the user inputs "name" and clicks Save, a "name.png" file should be created, but not a file "name"

        3.) the suggested filename is always ignored...what's the point in having a suggested name argument then?
        fileSaveService.saveFileDialog(null, supportedImageExportExtensions, imageInputStream, "my_suggested_name.png");//always ignored

              dcherepanov Dmitry Cherepanov
              dcherepanov Dmitry Cherepanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: