Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8019464

[macosx] FileDialog buttons not localized

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u4
    • Fix Version/s: 8
    • Component/s: client-libs
    • Labels:

      Description

      FULL PRODUCT VERSION :
      java version " 1.7.0_40-ea "
      Java(TM) SE Runtime Environment (build 1.7.0_40-ea-b28)
      Java HotSpot(TM) 64-Bit Server VM (build 24.0-b47, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Mac OS X 10.7.5

      A DESCRIPTION OF THE PROBLEM :
      The 3 buttons " New Folder " , " Cancel " and " Open " / " Save " displayed in a FileDialog instance are not localized according to the set locale.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the test case attached to this report.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expected the buttons would display the texts " Nouveau dossier " , " Annuler " and " Ouvrir " .
      ACTUAL -
      The buttons displayed the texts " New Folder " , " Cancel " and " Open " .

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.awt.*;
      import java.util.Locale;

      public class FileDialogTest {
        public static void main(String [] args) {
          Locale.setDefault(Locale.FRENCH);
          new FileDialog(new Frame()).setVisible(true);
          System.exit(0);
        }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None.
      Note that only files selected with the FileDialog class can be opened in a sandboxed program, so in that environment, it can't even be replaced by a JFileChooser instance (that is less less usable under Mac OS X anyway).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pchelko Petr Pchelko (Inactive)
              Reporter:
              webbuggrp Webbug Group
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: