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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Linux, sw pipeline, 1.8.0-ea-b55

      Description

      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();
          }
          

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: