单击 "reset" 按钮时如何更新微调器的值

How to update the value of the spinner when clicking a "reset" button

我试图在单击名为“重置”的按钮时手动设置微调器的值。有没有办法做到这一点,因为我查看了 java api 并且找不到任何简单的方法。

怎么样

spinner.getValueFactory().setValue(...);