r/JavaFX • u/travelking_brand • Oct 31 '25
Help decimal values in the UI
I have programmed professionally in possibly dozens of languages, building business applications.
I have started a journey to learn JavaFX and have been having fun, but I have come across a conundrum. Does JavaFX NOT have an OOTB control for entering a decimal value??? This kind of blows my mind. All I see are rather convoluted methods for formatting a TextField.
All of the higher-level programming languages I have ever used for business applications have had an easy method to input decimal values OOTB. Have I missed a key fact???
View all comments
Show parent comment
1
u/travelking_brand Nov 21 '25
Thanks for your response. I am using this lack of functionality as an example of what I feared I would uncover researching if JavaFX was suitable for enterprise business applications. I have a business model (resource and capacity management) on the shelf that I am using to facilitate this research.
Yes, tons of eye candy are possible, but it's trivial for business applications. Functionality, like the lack of OOTB decimal fields, did not give me much confidence. Agreed, you can roll your own, but what else was over the horizon?
I have progressed a lot further; there are some neat features, but overall, JavaFX needs a lot of massaging and investment to make it that kind of tool. For example, a TableView that allows field-level editing. Doable, but with a LOT of effort to take it to that level. This constrains the UI decisions I could take.
I will keep sloggin on and see where this ends up. Thanks again for your feedback.