-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
7u6
In Scene Builder, we have the following use case :
- in a ComboBox, a user enter a value
- if this value is invalid, the value is set back to the previous value
This validation checking is done in the comboBox setOnAction(), and if invalid, comboBox setValue() method is used to come back to the previous value.
This does not work : the comboBox still display the invalid value.
Now, if we use the comboBox getEditor().setText() method, this is working fine !
I was not (yet) able to reproduce in a separate test case. This can be reproduced using SB, from any inspector ComboBox.
- in a ComboBox, a user enter a value
- if this value is invalid, the value is set back to the previous value
This validation checking is done in the comboBox setOnAction(), and if invalid, comboBox setValue() method is used to come back to the previous value.
This does not work : the comboBox still display the invalid value.
Now, if we use the comboBox getEditor().setText() method, this is working fine !
I was not (yet) able to reproduce in a separate test case. This can be reproduced using SB, from any inspector ComboBox.
- duplicates
-
JDK-8118379 ComboBox based editors do not handle correctly wrong values
-
- Closed
-
-
JDK-8122467 Inspector panel should always reject "-Infinity" value
-
- Closed
-