JDK-4912550 : GTK L&F: In JFileChooser folder ordering is unlike native mercury ordering
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2_01
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_sun
  • CPU: x86
  • Submitted: 2003-08-26
  • Updated: 2003-11-11
  • Resolved: 2003-11-03
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.
Other
1.4.2_04 04Fixed
Description
In JFileChooser folder ordering is unlike native mercury ordering for same.

Steps to Reproduce:
-------------------
1) Run SwingSet2 on Mercury with -Dswing.gtkthemefile=<Your .gtkrc File>. Change the Look And Feel to GTK.
2) Go to FileChooser Demo. 
3) Click on button 'Show Plain JFileChooser' and notice the folders order(For /root).
4) Now open Gedit.
5) Click Open and notice the order of folders(For /root), It is different than java implementation of the same.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.2_04 tiger-beta FIXED IN: 1.4.2_04 tiger-beta INTEGRATED IN: 1.4.2_04 tiger-b28 tiger-beta
2004-06-14

EVALUATION Reproducible as specified with JDK1.5.0b21. Gedit lists [A-Z] before [a-z] (as ls does), while GTK L&F mixes upper and lower case. For instance, here is the order of four directories named Capital, Uppercase, lowercase, notcapital: GEdit order: Capital Uppercase lowercase notcapital JFileChooser order: Capital lowercase notcapital Uppercase ###@###.### 2003-09-30 Name: anR10225 Date: 10/08/2003 file sorting for chooser is performed within BasicDisrectoryModel.sort() method. This behavior should be overridden in GTK plaf by implementing new BasicDisrectoryModel class with file names sorting in natural string order. Also createModel() and getModel() should be overridden in GTKFileChooserUI to return an instance of a new class. ======================================================================
2004-06-11