I'm doing a project using NetBeans IDE 8.2.x
I need to a set a JTextfield
only to get users number inputs. Other characters (like letters) which a user inputs should not take as an input. Can I do it? Is there a specific setting for Textfield
properties to do this?
Asked
Active
Viewed 28 times
0

SedJ601
- 12,173
- 3
- 41
- 59

lasitha atapattu
- 1
- 2
-
2Yes, there is one. – Leonardo Henriques Mar 20 '18 at 16:46
-
[This link](https://stackoverflow.com/questions/11093326/restricting-jtextfield-input-to-integers) might help. – Robo Mop Mar 20 '18 at 16:47
-
You should add the `keyword` that relates to the `GUI` technology you are using. – SedJ601 Mar 20 '18 at 16:49
-
I am pretty sure this question is a duplicate. – SedJ601 Mar 20 '18 at 16:50