Is there any way to accept only numeric values in a JTextField? Is there any special method for this?
JTextField
I think it is the best solution:
JTextField textField = new JFormattedTextField(new MaskFormatter("###")); //