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

ExtensionFilters don't work correctly on FileChooser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows XP, FX 2.0 b36

      Description

      I feel like I'm probably doing something wrong, but if I add an ExtensionFilter to an instance of FileChooser (by way of getExtensionFilters().add()), it seems to block all files from showing up in the dialog. In my attached example, I'm trying to filter everything except for text files, but on Windows XP at least I can't see any of my text files. I tried adding the filter with and without a "." before the extension and it didn't work either way. I also tried passing in a list of extensions rather than using the varargs constructor, neither worked. The problem affects both showOpenDialog and showSaveDialog.

        Attachments

          Activity

            People

            Assignee:
            lnerad Ľubomír Nerád
            Reporter:
            kmcintyrejfx Kyle McIntyre (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: