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

Thousands separator not displayable for Locale.FRENCH

    XMLWordPrintable

Details

    Description



      Name: skT45625 Date: 07/06/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      The thousands separator for the French locale is not diplayable.

        DecimalFormat df = (DecimalFormat)NumberFormat.getInstance(Locale.FRENCH);
        DecimalFormatSymbols dfs = df.getDecimalFormatSymbols();
        char sep = dfs.getGroupingSeparator();
        System.out.println("French thousands separator = <"+sep+">");

      Result:
        French thousands separator = <?>

      In a JTextField the thousands separator doesn't show at all.

        JTextField tf = new JTextField(10);
        tf.setText(new StringBuffer("123")
                            .append(sep).append("456").toString());

      Shown:
        123 456
      (Review ID: 106905)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              duke J. Duke
              skondamasunw Suresh Kondamareddy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: