Originally posted by tadi raja:
actually i want to clear the String value, not the textfield.getText() value.
Note that you haven't actually asked a question.
I'll point out, though, that JFormattedTextField has
a distinction between its
value and its visible
text.
So you could call setText("") and clear the field without
changing the value returned by getValue(). So if that's
really what you want, JFormattedTextField may (or may
not) be helpful to you.