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

JFileChooser incorrectly placed "Date" value in "Type" field

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      System : Windows 10 Familial Edition 64-Bits
      Java version :
      JDK 14.0.2 2020-07-14
      Runtime environment (build 14.0.2+12-46)
      JDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, shared)

      A DESCRIPTION OF THE PROBLEM :
      When opening a JFileChooser with file section mode set to FILES_AND_DIRECTORIES, if we click on the details view button at start up and then on home button after ward all the file / folder description are mess up.

      That is:
      the date is placed either in the the size column or the type column,
      the canonical path name of the parent directory is placed into the modified date column
      the file/folder type is placed into the modified date column (this one is not always reproducible)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Use either MetalLookAndFeel or NimbusLookandFeel
      instanciate JFileChooser with file section mode set to FILES_AND_DIRECTORIES
      showOpenDialog() (showSaveDialog also does the same thing)
      Click on Details view button
      Click on Home button

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The file / folder description should be placed in the right column
      ACTUAL -
      The file / folder description are not placed in the right column

      ---------- BEGIN SOURCE ----------
      //import from javax.swing.*;
      JFileChooser fChooser = new JFileChooser();
      fChooser.showOpenDialog(); //showSaveDialog(); also cause the issue

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Seems to be a source code issue. I did not find any work around.

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: