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

TextField : hyphen is broken in TextField, TextArea, etc.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • javafx
    • Linux, sw pipeline, 1.8.0-ea-b55

      Run this code, and start type in textField, if type "-" - it's not show and not in text returns getText()
      @Override
          public void start(Stage stage) throws Exception {
              StackPane root = new StackPane();
              TextField textField = new TextField();
              final Label label = new Label("Text : ");
              root.getChildren().addAll(VBoxBuilder.create().spacing(50).children(textField, label).build());
              
              textField.textProperty().addListener(new ChangeListener<String>() {

                  @Override
                  public void changed(ObservableValue<? extends String> ov, String t, String t1) {
                      label.setText("Text : " + t1);
                  }
              });
              textField.setText("1----------------2");
              Scene scene = new Scene(root, 300, 300);
              stage.setScene(scene);
              stage.setTitle(VersionInfo.getRuntimeVersion());
              stage.show();
          }
          

            msoch Martin Ĺ och (Inactive)
            slugovoy Sergey Lugovoy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: