<Swing Dev> RFR 8250935:JFileChooser incorrectly placed "Date" value in "Type" field
Prasanta Sadhukhan
prasanta.sadhukhan at oracle.com
Mon Aug 24 14:27:15 UTC 2020
Hi All,
Please review a fix for a JFileChooser issue where it is seen that if we
open the dialog and click on "Details" view and then click on "Home"
button,
the "Modified" time is shown in "Type" field. This issue is present from
at least jdk8 onwards.
Issue is because for ShellFolder#getFolderColumnValue handles "name",
"Size", "date" cases ignoring "Type" case so date value is shown in Type
field.
Proposed fix is to handle folder "Type" case too and also "Date" value
is formatted correctly
to show in same format as other non-shellfolder options and
also to be same as "native" time format for same folder.
Bug: https://bugs.openjdk.java.net/browse/JDK-8250935
webrev: http://cr.openjdk.java.net/~psadhukhan/8250935/webrev.00
Regards
Prasanta
P.S: There is still some issue regarding the header values recursively
inside Shellfolders which will handled subsequently in separate issue
More information about the swing-dev
mailing list