United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4912550 GTK L&F: In JFileChooser folder ordering is unlike native mercury ordering
JDK-4912550 : GTK L&F: In JFileChooser folder ordering is unlike native mercury ordering

Details
Type:
Bug
Submit Date:
2003-08-26
Status:
Resolved
Updated Date:
2003-11-11
Project Name:
JDK
Resolved Date:
2003-11-03
Component:
client-libs
OS:
linux_sun
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.2_01
Fixed Versions:
1.4.2_04 (04)

Related Reports
Backport:

Sub Tasks

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
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
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



Hardware and Software, Engineered to Work Together