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

Win L&F: JFileChooser should also support wild card '?'

XMLWordPrintable

    • b30
    • x86
    • windows_2000

      JFileChooser should support '?' wildcard.
      In windows system '?' & '*' are two widely used wild card characters
      But JFileChooser doesn't support wildcard '?', Though it supports '*'

      Steps to reproduce:
      1) Open SwingSet2.
      2) Change L&F to windows.
      3) Go to FileChooser demo, And Open a plain JFileChooser.
      4) Type '?' in name field and hit enter than it should display all files which matches this wild card, But in turn it closes FileChooser dialog treating it as file name, While '?' can't be a file or folder name in windows.
      5) Open native FileChoosr dialog,(Open notepad, And say File > Open).
      6) Type '?' in name field and hit enter, It will display all the files which matches this wildcard.

      Note:
      - This bug exist in both win2k and xp.
      - This bug can be reproduced in Tiger also.

            leifs Leif Samuelsson (Inactive)
            hsinghsunw Hemant Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: