United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6785462 Missing "(O)" in JFileChooser Open button in Windows LAF
JDK-6785462 : Missing "(O)" in JFileChooser Open button in Windows LAF

Details
Type:
Bug
Submit Date:
2008-12-16
Status:
Closed
Updated Date:
2010-09-29
Project Name:
JDK
Resolved Date:
2010-01-08
Component:
globalization
OS:
windows
Sub-Component:
translation
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u12
Fixed Versions:
6u18 (b01)

Related Reports
Backport:
Relates:

Sub Tasks

Description
In Windows LookAndFeel, the JFileChooser's Open button should have a sufix "(O)", after the fix of 6745408, it's gone. The fix should only affect MetalLookAndFeel, not WindowsLookAndFeel. See attached screenshot.

                                    

Comments
EVALUATION

The CR will be fixed in 6u14, next normal release in 6ur.
                                     
2008-12-16
EVALUATION

With futher investigation, I find that the label text of open button is saved in one key in basic.properties.

It means that, if I update it to without (O), it will not work well in Windows Look And Feel, but if I set it to with (O), it will not work well in Metal Look and Feel.

I have filed a i18n CR on swing, to have seperate key for each look and feel. The priority of the CR is set to p4. I am not sure how long it will takes the swing team to fix this CR. If you feel necessary, I can upgrade it to p3. While, currently, in the most frequently used LAF, metal LAF everything works fine. In windos look and feel, only (O) is missing, the function works well.
                                     
2009-01-07
EVALUATION

With discussion with Yuka about the "fallback mechnism", it's clear that same key in LAF specific resource file can replace the value of that key in basic_xx.properties. 

L10n can fix this CR by adding same key with different value in windows_xx.properties.

It's near b04 in 6u14 now. I'll fix it next release.
                                     
2009-02-25



Hardware and Software, Engineered to Work Together