-1

I am writing a program and I want the JTextfield to be blank after the input has been given.
For example; user inputs a number, he presses the add button and the textfield should be blank again and should not contain the number. I tried using null but it doesnt work. If you need the code tell me, I will edit it.

John Smith
  • 71
  • 1
  • 11

1 Answers1

1

you can just do textfieldname.setText("");

Austin
  • 726
  • 4
  • 22