JDK-6745048 : Unnecessary surfix "(O)" in JFileChooser open button text
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 6u10
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-09-05
  • Updated: 2010-10-28
  • Resolved: 2009-01-22
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 JDK 7
6u12 b01Fixed 7Fixed
Description
FULL PRODUCT VERSION :
java version "1.6.0_10-rc"
Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP

A DESCRIPTION OF THE PROBLEM :
According to the evaluation  of bug 4486063, in MetalLookAndFeel,  the open button of JFileChooser dialog should not have mnemonics.
In zh_CN an ja locale, the text of open button has an unnecessary "(O)" surfix, when user select a directory.
Although the "O" is not underlined, user may still be confused to press Alt+O , trying to open selected directory.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use    "java -Duser.language=ja -jar SwingSet2.jar"  to launch SwingSet2 demo app, select "java LookAndFeel",  select JFileChooser demo, open a filechooser dialog, select any directory, the text of open button appends an unnecessary "(O)" surfix.


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION Risk is very low. There is only resource file change.
29-10-2008

EVALUATION should update FileChooser.directoryOpenButtonText in j2se/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic.properties
24-10-2008

EVALUATION When click a folder in filechooser dialog, the button text will change that contain an extra (o). The target fix release is 6u11.
19-09-2008