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

JFileChooser: problem with clicking outside of a file being renamed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.4.1, 5.0
    • client-libs
    • None
    • tiger
    • generic, x86
    • generic, windows_nt, windows_xp

      The following happens using 1.4.2, with the Windows L&F as well as Metal, on Win2k and XP.

      When you have a JFileChooser up and are renaming the last item, clicking anywhere below the file being renamed should take you out of rename mode, and deselect the file (which is what happens w/ the native Windows file chooser). Instead, in Details view nothing happens, and in List view the last items acts as if its icon has been clicked. In both cases, you remain in file rename mode, and it's very disoncerting to be "stuck" renaming a file.

      I believe that the underlying problem is that JFileChooser isn't correctly interpreting where mouse clicks in the file pane should go. Some examples:

      1) Select the first item in a List view. Then click somewhere below that last item. This should deselect the first item, but instead it selects the last item.

      2) Select the first item in a Details view. Then click somewhere below the last item. This should deselect the first item, but instead nothing happens.

            bchristi Brent Christian
            bchristi Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: