1

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?

Dragon4c3
  • 77
  • 1
  • 10

0 Answers0