JDK-8081507 : Open or Save button in JFileChooser has OK title in GTK LaF
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-05-29
  • Updated: 2023-01-12
  • Resolved: 2023-01-04
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 21
21 b05Fixed
Related Reports
Relates :  
Description
In GTK Look-and-Feel, the button to open or save a file is called OK.
It's inconsistent with other JFileChooser LaFs as well as with native dialogs
Comments
Changeset: 578c287a Author: Abhishek Kumar <abhiscxk@openjdk.org> Committer: Sergey Bylokhov <serb@openjdk.org> Date: 2023-01-04 22:45:39 +0000 URL: https://git.openjdk.org/jdk/commit/578c287a68f38f21a91d200b7a0657aaeb721b3f
04-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11790 Date: 2022-12-27 19:05:10 +0000
27-12-2022

Any changes in the base (English) properties file should be automatically picked up by the localization process. So it is OK to leave localized files as they are for now. Please keep this JIRA issue in `client-libs/javax.swing` component.
16-12-2022

Yes, that's true. But please use the updated basic resource where all mnemonics are removed from Open, Save, and Cancel buttons, see JDK-8080628.
01-06-2015

mnemonics positions and translations could be get from src/java.desktop/share/classes/com/sun/swing/internal/plaf/basic/resources diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=De&lete File FileChooser.renameFileButton.textAndMnemonic=&Rename File FileChooser.cancelButton.textAndMnemonic=&Cancel -FileChooser.saveButton.textAndMnemonic=&OK -FileChooser.openButton.textAndMnemonic=&OK +FileChooser.saveButton.textAndMnemonic=&Save +FileChooser.openButton.textAndMnemonic=&Open FileChooser.saveDialogTitle.textAndMnemonic=Save FileChooser.openDialogTitle.textAndMnemonic=Open FileChooser.pathLabel.textAndMnemonic=&Selection: diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_de.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_de.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_de.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=Datei &l\u00F6schen FileChooser.renameFileButton.textAndMnemonic=Datei &umbenennen FileChooser.cancelButton.textAndMnemonic=&Abbrechen -FileChooser.saveButton.textAndMnemonic=&OK -FileChooser.openButton.textAndMnemonic=&OK +FileChooser.saveButton.textAndMnemonic=&Speichern +FileChooser.openButton.textAndMnemonic=\u00D6&ffnen FileChooser.saveDialogTitle.textAndMnemonic=Speichern FileChooser.openDialogTitle.textAndMnemonic=\u00D6ffnen FileChooser.pathLabel.textAndMnemonic=Aus&wahl: diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_es.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_es.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_es.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=Su&primir Archivo FileChooser.renameFileButton.textAndMnemonic=Cambiar Nomb&re de Archivo FileChooser.cancelButton.textAndMnemonic=&Cancelar -FileChooser.saveButton.textAndMnemonic=&Aceptar -FileChooser.openButton.textAndMnemonic=&Aceptar +FileChooser.saveButton.textAndMnemonic=&Guardar +FileChooser.openButton.textAndMnemonic=&Abrir FileChooser.saveDialogTitle.textAndMnemonic=Guardar FileChooser.openDialogTitle.textAndMnemonic=Abrir FileChooser.pathLabel.textAndMnemonic=&Selecci\u00F3n: diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_fr.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_fr.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_fr.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=Supprimer &le fichier FileChooser.renameFileButton.textAndMnemonic=&Renommer le fichier FileChooser.cancelButton.textAndMnemonic=&Annuler -FileChooser.saveButton.textAndMnemonic=&OK -FileChooser.openButton.textAndMnemonic=&OK +FileChooser.saveButton.textAndMnemonic=Enregi&strer +FileChooser.openButton.textAndMnemonic=&Ouvrir FileChooser.saveDialogTitle.textAndMnemonic=Enregistrer FileChooser.openDialogTitle.textAndMnemonic=Ouvrir FileChooser.pathLabel.textAndMnemonic=&S\u00E9lection : diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_it.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_it.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_it.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=E&limina file FileChooser.renameFileButton.textAndMnemonic=&Rinomina file FileChooser.cancelButton.textAndMnemonic=&Annulla -FileChooser.saveButton.textAndMnemonic=&OK -FileChooser.openButton.textAndMnemonic=&OK +FileChooser.saveButton.textAndMnemonic=Sal&va +FileChooser.openButton.textAndMnemonic=&Apri FileChooser.saveDialogTitle.textAndMnemonic=Salva FileChooser.openDialogTitle.textAndMnemonic=Apri FileChooser.pathLabel.textAndMnemonic=&Selezione: diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_ja.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_ja.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_ja.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u306E\u524A\u9664(&L) FileChooser.renameFileButton.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u5909\u66F4(&R) FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88(&C) -FileChooser.saveButton.textAndMnemonic=OK(&O) -FileChooser.openButton.textAndMnemonic=OK(&O) +FileChooser.saveButton.textAndMnemonic=\u4FDD\u5B58(&O) +FileChooser.openButton.textAndMnemonic=\u958B\u304F(&O) FileChooser.saveDialogTitle.textAndMnemonic=\u4FDD\u5B58 FileChooser.openDialogTitle.textAndMnemonic=\u958B\u304F FileChooser.pathLabel.textAndMnemonic=\u9078\u629E(&S): diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_ko.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_ko.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_ko.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=\uD30C\uC77C \uC0AD\uC81C(&L) FileChooser.renameFileButton.textAndMnemonic=\uD30C\uC77C \uC774\uB984 \uBC14\uAFB8\uAE30(&R) FileChooser.cancelButton.textAndMnemonic=\uCDE8\uC18C(&C) -FileChooser.saveButton.textAndMnemonic=\uD655\uC778(&O) -FileChooser.openButton.textAndMnemonic=\uD655\uC778(&O) +FileChooser.saveButton.textAndMnemonic=\uC800\uC7A5(&O) +FileChooser.openButton.textAndMnemonic=\uC5F4\uAE30(&O) FileChooser.saveDialogTitle.textAndMnemonic=\uC800\uC7A5 FileChooser.openDialogTitle.textAndMnemonic=\uC5F4\uAE30 FileChooser.pathLabel.textAndMnemonic=\uC120\uD0DD \uC0AC\uD56D(&S): diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_pt_BR.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_pt_BR.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_pt_BR.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=De&letar Arquivo FileChooser.renameFileButton.textAndMnemonic=&Renomear Arquivo FileChooser.cancelButton.textAndMnemonic=&Cancelar -FileChooser.saveButton.textAndMnemonic=&OK -FileChooser.openButton.textAndMnemonic=&OK +FileChooser.saveButton.textAndMnemonic=&Salvar +FileChooser.openButton.textAndMnemonic=A&brir FileChooser.saveDialogTitle.textAndMnemonic=Salvar FileChooser.openDialogTitle.textAndMnemonic=Abrir FileChooser.pathLabel.textAndMnemonic=&Sele\u00E7\u00E3o: diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_sv.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_sv.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_sv.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=Ta &bort fil FileChooser.renameFileButton.textAndMnemonic=&\u00C4ndra namn p\u00E5 filen FileChooser.cancelButton.textAndMnemonic=&Avbryt -FileChooser.saveButton.textAndMnemonic=&OK -FileChooser.openButton.textAndMnemonic=&OK +FileChooser.saveButton.textAndMnemonic=&Spara +FileChooser.openButton.textAndMnemonic=&\u00D6ppna FileChooser.saveDialogTitle.textAndMnemonic=Spara FileChooser.openDialogTitle.textAndMnemonic=\u00D6ppna FileChooser.pathLabel.textAndMnemonic=&Urval: diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_zh_CN.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_zh_CN.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_zh_CN.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=\u5220\u9664\u6587\u4EF6(&L) FileChooser.renameFileButton.textAndMnemonic=\u91CD\u547D\u540D\u6587\u4EF6(&R) FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88(&C) -FileChooser.saveButton.textAndMnemonic=\u786E\u5B9A(&O) -FileChooser.openButton.textAndMnemonic=\u786E\u5B9A(&O) +FileChooser.saveButton.textAndMnemonic=\u4FDD\u5B58(&O) +FileChooser.openButton.textAndMnemonic=\u6253\u5F00(&O) FileChooser.saveDialogTitle.textAndMnemonic=\u4FDD\u5B58 FileChooser.openDialogTitle.textAndMnemonic=\u6253\u5F00 FileChooser.pathLabel.textAndMnemonic=\u9009\u5B9A\u5185\u5BB9(&S): diff -r 518497676d6f src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_zh_TW.properties --- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_zh_TW.properties Wed May 20 17:10:15 2015 +0300 +++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk_zh_TW.properties Fri May 29 18:50:58 2015 +0300 @@ -35,8 +35,8 @@ FileChooser.deleteFileButton.textAndMnemonic=\u522A\u9664\u6A94\u6848(&L) FileChooser.renameFileButton.textAndMnemonic=\u91CD\u65B0\u547D\u540D\u6A94\u6848(&R) FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88(&C) -FileChooser.saveButton.textAndMnemonic=\u78BA\u5B9A(&O) -FileChooser.openButton.textAndMnemonic=\u78BA\u5B9A(&O) +FileChooser.saveButton.textAndMnemonic=\u5132\u5B58(&O) +FileChooser.openButton.textAndMnemonic=\u958B\u555F(&O) FileChooser.saveDialogTitle.textAndMnemonic=\u5132\u5B58 FileChooser.openDialogTitle.textAndMnemonic=\u958B\u555F FileChooser.pathLabel.textAndMnemonic=\u9078\u53D6(&S):
29-05-2015