I'm making a calculator app and i want it so that you can only type numbers into the JTextField
JTextField first = new JTextField(4);
f.add(first);
Is there any way of doing that?
I'm making a calculator app and i want it so that you can only type numbers into the JTextField
JTextField first = new JTextField(4);
f.add(first);
Is there any way of doing that?