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

TextField with bidirectional binding is not editable in applet but editable in standalone execution mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • fx2.0, fx2.1, 7u6
    • javafx

      The following code works differently when run as Standalone app or in Browser:

              StageBuilder.create()
                      .scene(SceneBuilder.create()
                          .root(textField = TextFieldBuilder.create()
                              .build())
                          .build())
                      .applyTo(stage);

              text = new SimpleStringProperty();
              
              // The following line causes textField to fail
              textField.textProperty().bindBidirectional(text);
              
              stage.show();

      When run in browser the TextField ignores any characters typed.

      The workaround is to provide not-null initial value (text = new SimpleStringProperty(""))

            leifs Leif Samuelsson (Inactive)
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: