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

Mac: Extension filter doesn't work properly in FX/Glass

    Details

      Description

      Initial bug report about FileSaveService is - http://javafx-jira.kenai.com/browse/RT-24433

      RT-24433 & JRE bug (7173702) addresses the deploy part of the initial issue but it still needs further improvement in FX/Glass:

      1. Extension doesn't work properly on Mac

      To reproduce it just run rain demo on Mac and open new file chooser.
      The file chooser doesn't allow to change the current file type (the chooser doesn't contain any combo box for that) .
      At the same time, the source code (of the rain demo) explicitly creates two filters:

                  ExtensionFilter filterAll = new ExtensionFilter("All files", extensionsAll);
                  ExtensionFilter filterTxt = new ExtensionFilter("Text files", extensionsTxt);

      2. FX/Glass FileChooser doesn't support suggested filename

      Similar functionality is available in Swing:
      http://docs.oracle.com/javase/7/docs/api/javax/swing/JFileChooser.html#setSelectedFile(java.io.File)
      On Windows the filename is used to initialize the File Name edit control but this functionality isn't present in FX/Glass FileChooser.

      Please let me know if i need to submit separate JIRAs for these issues.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pchelko Petr Pchelko (Inactive)
                Reporter:
                dcherepanov Dmitry Cherepanov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: