How to make a TimeSpinner in JavaFX?

前端 未结 2 1415
面向向阳花
面向向阳花 2020-12-11 06:46

I would like to make a spinner to enter the time just like this : Youtube Vidéo

If someone knows where the source code is hiding, it would be perfect. But if not, I

2条回答
  •  Happy的楠姐
    2020-12-11 07:19

    change your converter constructor to:

        setConverter(new LocalTimeStringConverter(DateTimeFormatter.ofPattern("HH:mm"), DateTimeFormatter.ofPattern("HH:mm")));
    

提交回复
热议问题