-
Bug
-
Resolution: Fixed
-
P3
-
fx2.0, fx2.1, 7u6
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(""))
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(""))
- duplicates
-
JDK-8126294 Compatibility issue: NullPointerException in TextField when bound bidirectional
- Closed
-
JDK-8116159 NPE is thrown, when labelProperty is binded bidirectionally.
- Closed
-
JDK-8126035 TextField and TextArea do not type, after setText(null)
- Closed
- relates to
-
JDK-8128461 Exception when the user attempts to type into a TextField where the text property is bound
- Closed
-
JDK-8114896 bidirecional binding not work with textfield.
- Closed