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

[macos] Cannot input Chinese punctuations

XMLWordPrintable

    • x86_64
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      jre 8u271
      macos 10.11

      A DESCRIPTION OF THE PROBLEM :
      Chinese uses different punctuations from English, for example period in Chinese is "。" instead of ".".

      I can use a Chinese input method to input "。!“”?;" correctly in native apps but they become .!""?; in javafx's input controls.


      ---------- BEGIN SOURCE ----------
      package fx;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.TextArea;
      import javafx.scene.layout.AnchorPane;
      import javafx.stage.Stage;

      public class Test extends Application {

      @Override
      public void start(Stage primaryStage) throws Exception {
      AnchorPane root = new AnchorPane();
      TextArea ta = new TextArea();
      root.getChildren().add(ta);
      AnchorPane.setLeftAnchor(ta, 5.0);
      AnchorPane.setRightAnchor(ta, 5.0);
      AnchorPane.setTopAnchor(ta, 5.0);
      AnchorPane.setBottomAnchor(ta, 5.0);
      ta.setStyle("-fx-font-size:18; -fx-font-family: Arial;");
      ta.setWrapText(true);

      primaryStage.setScene(new Scene(root, 100, 50));
      primaryStage.show();
      }


      public static void main(String[] args) {
      launch(args);
      }
      }

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

      FREQUENCY : always


        1. Main.java
          0.9 kB
        2. JI-9067676.jpg
          JI-9067676.jpg
          26 kB
        3. JI-9067676.jpg
          JI-9067676.jpg
          26 kB
        4. Capture01.JPG
          Capture01.JPG
          42 kB
        5. Capture.JPG
          Capture.JPG
          21 kB

            pnarayanaswa Praveen Narayanaswamy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: