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

JFileChooser.getSelectedFile() returns nothing when a file is selected

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      Using JDK1.3.0_02 and JDK 1.4 beta 58

      Under the default and Windows Look and Feel.
      Open the JFileChooser in multi-select mode. Type the full path name of a file
      that's not in the directory that's currently being displayed (e.g.
      "c:\dev\todo.txt"). Press the Open button or hit Enter. When you call
      getSelectedFiles(), it returns an empty array. (It should return an array with
      a single element, containing the file you typed in.) If you instead type the
      name of a file that's in the current directory, it works fine.

      A simple testcase is included in the attachments.

        Attachments

          Activity

            People

            • Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              atongschsunw Albert Tong-schmidt (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: