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!

Allow only numbers in a JFormattedTextField

843806Aug 2 2007 — edited Nov 6 2007
Hellow,

I'm working with Netbeans. I have inserted a bean of a JFormattedTextField in muy GUI and I want it to only accept numbers ( If someone try to put another character it doesn't appear). How can I do this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2007
Added on Aug 2 2007
8 comments
976 views