retrieve unformatted text from JFormattedTextField
843804Jan 14 2005 — edited Feb 3 2005Hi everyone,
I'm using FormattedTextField to define my formatted text fields and I'm using MaskFormatter to set the format.
I've been trying (with no success :( ) to find a way to retrieve the unmasked text that has been set for a text field.
For example, if the formatter is :
new MaskFormatter("(###)###-###"), then the text field will display the input as:
(342)123-455.
I need to retrieve the text as : 342123455.
I expected to find a parse or a getUnmaskedText methods in one of these class, but there is none.
Any idea will be appreciated.
Thanks!