Hi all,
I have a textfield with an actionlistener that performs a mathematical calculation, so it will only take number.
If it type in text and press enter, it displays various errors in the compiler (naturally).
How can I insert in the action listener that if the value of the textfield is text then do nothing?
I have a textfield with an actionlistener that performs a mathematical calculation, so it will only take number.
If it type in text and press enter, it displays various errors in the compiler (naturally).
How can I insert in the action listener that if the value of the textfield is text then do nothing?