JDK-4752713 : Cannot sort on properties displayed on JFileChooser detailed view
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1,5.0,6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,windows_nt,windows_2000,windows_xp generic,windows_nt,windows_2000,windows_xp
  • CPU: generic,x86
  • Submitted: 2002-09-25
  • Updated: 2006-03-01
  • Resolved: 2006-01-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b68Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Name: jk109818			Date: 09/24/2002


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

AND

java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)


A DESCRIPTION OF THE PROBLEM :
use JFileChooser to create a file open dialog, click
on "Detail" icon, the file dialog does show the detail
properties of the files ( such as, type, modified,
size...), click on Modified, the files do not sort on the
Modified date.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Use JFileChooser demo included in the demo directory
installed along with the j2sdk.
2.open a default file chooser
3.click on "Detail" icon, the file dialog does show the
detailed properties of the files ( such as, type, modified,
size...), click on Modified, the files do not sort on the
Modified date.

EXPECTED VERSUS ACTUAL BEHAVIOR :
After you click on Modified, the files and directory should
be displayed according to the created date.

REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 164870) 
======================================================================
###@###.### 10/15/04 20:40 GMT

Comments
EVALUATION The fix should be: a) use the new TableRowSorter for sorting the JTable in the details view; b) for sorting in the list view, create a specialized model for JList that would use the row sorter from the JTable; c) in ShellFolderColumnInfo class, add a boolean field to specify whether the column comparator expects the column value or the file itself; d) in ShellFolderManager, provide appropriated comparators for the default column set.
14-12-2005

EVALUATION Changed to rfe. We will consider adding this feature in a future major release. ###@###.### 2002-10-01
01-10-2002