JavaFX equivalent of Swing's JSpinner?

前端 未结 3 1511
慢半拍i
慢半拍i 2021-01-12 07:03

I was trying to find a spinner component like JSpinner to use in my JavaFX application but there is no such component.

What JavaFX component do you recommend me to u

3条回答
  •  一向
    一向 (楼主)
    2021-01-12 07:45

    You can also check and follow my initial approach to the spinner implementation problem, which you can find here: https://github.com/bluevoxel/Custom_Spinner_JavaFX8/wiki

    And thats how it looks like:

    enter image description here

    Its functionality is constantly expanding, so I will be very grateful for your feedback.

    UPDATE 4/11/2014

    There is a new version available with expanded functionality including doubles, additional customizable ContextMenu class for choosing the incrementation value, additional method for uploading custom functionality to increase/decrease buttons. Check the link below to know more:

    https://gist.github.com/bluevoxel/c730a101ba812728a235

    Also, there is a new outlook lack of external image files:

    enter image description here

提交回复
热议问题