I am making a program that has a reset and submit button. When the user clicks reset everything the user filled in sure be erased but I can't find a clear or remove method. Can anyone give me an idea about this? I have tried to search other forums and google/java api but I cant find one. Thanks :D
Originally Posted by sweetpea123
I am using Swing components like Jtextfield, JTextarea etc
To clear a text component in Swing, simply call setText("") on the component.