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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0, fx2.1, 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Environment:

      Description

      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(""))

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: