Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

retrieve unformatted text from JFormattedTextField

843804Jan 14 2005 — edited Feb 3 2005
Hi 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2005
Added on Jan 14 2005
17 comments
457 views