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!

JSPinner editor

843805Oct 20 2005 — edited Jul 3 2007
Hi, I have a JSPinner with a SpinnerNumberModel. I wish to allow the user to enter numerical digits only in to the text field.

I ghave attatched a key listener and can validate the key entered (is a number) but that is as far as have got.

How do I ignore characters other than 0 -9?

thanks

Paul.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2007
Added on Oct 20 2005
9 comments
96 views