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

dialog-label-texts are in English even though system locale is de_DE

    XMLWordPrintable

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Window7 - all systemsettings are german

      A DESCRIPTION OF THE PROBLEM :
      Classes as JFileChooser or JOptionPane have label-texts on there UI. The Method Locale.getDefault() returns de_DE on my system, but label-texts on the dialog-UIs are in english while they should be in german.

      REGRESSION : Last worked in version 11.0.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create an instance of a JFileChooser and show it on a german environment

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The label-texts should be in german. For example on the cancel-Botton should be the text "Abbrechen"
      ACTUAL -
      The label-texts on instances of JFileChooser or JOptionPane in a german environment are in english.

      ---------- BEGIN SOURCE ----------
      import javax.swing.JFileChooser;

      public class Main {
      public static void main(final String[] args) {
      JFileChooser fileChooser = new JFileChooser();
      fileChooser.showOpenDialog(null);
      }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      There is no workaround for all the issues. For example the tooltip-text of the cancel-button on a JFileChooser can not be set manually.

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            psonal Pallavi Sonal (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: