1 Reply Latest reply on Aug 30, 2011 8:04 AM by TPD-Opitz

    Problem with getting the Grouping Separator based on Current Locale


      I have created a java swing application. In which I try to get the grouping separator based on System language and location(Control panel).
      But it always take comma as GroupingSeparator.
      I set the region and language to South Africa. Now It should take blank space as a GroupingSeparator but it takes comma.Here is my code:
      private char mcharDecimalSeparator;
      private char mcharGroupingSeparator;
      DecimalFormatSymbols objDecimalFormat;
      mcharDecimalSeparator = objDecimalFormat.getDecimalSeparator();
      mcharGroupingSeparator = objDecimalFormat.getGroupingSeparator();
      Any help will be appreciated '