RFR: 8154038: Spinner's converter should update its editor

Andy Goryachev angorya at openjdk.org
Wed Mar 15 18:13:33 UTC 2023


On Fri, 10 Mar 2023 11:38:56 GMT, Karthik P K <kpk at openjdk.org> wrote:

> When converter was changed, `setText` method of spinner was not invoked to update the spinner text using new converter.
> 
> Added a listener to converter property of `SpinnerValueFactory` to call `setText` so that spinner text is updated using new converter.
> 
> Added unit test to validate the fix. Along with spinner of Double type, added a spinner of Integer type as well so that the fix is validated using 2 types of spinner.

Added SpinnerPage to the MonkeyTester

https://github.com/andy-goryachev-oracle/Test/blob/main/src/goryachev/monkey/MonkeyTesterApp.java
https://github.com/andy-goryachev-oracle/Test/blob/main/src/goryachev/monkey/pages/SpinnerPage.java

-------------

PR: https://git.openjdk.org/jfx/pull/1057


More information about the openjfx-dev mailing list