ElliotHC Active Member Licensed User Jul 25, 2019 #1 I have an application where I need to input a number in to a box. It then performs a calculation. The problem is that you can also put letters in there which causes an issue. Is there a checkbox somewhere so that only numbers can be entered? I can't seem to find one in the designer. Or maybe some simple code that when that box is focused, only number presses are accepted? Thanks
I have an application where I need to input a number in to a box. It then performs a calculation. The problem is that you can also put letters in there which causes an issue. Is there a checkbox somewhere so that only numbers can be entered? I can't seem to find one in the designer. Or maybe some simple code that when that box is focused, only number presses are accepted? Thanks
stevel05 Expert Licensed User Longtime User Jul 25, 2019 #2 Have a look at this wrapper jTextFormatter Upvote 0