aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes swing ignoring alphanumeric characters but accepting numeric characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "swing ignoring alphanumeric characters but accepting numeric characters" Watch "swing ignoring alphanumeric characters but accepting numeric characters" New topic
Author

swing ignoring alphanumeric characters but accepting numeric characters

max soyosa
Greenhorn

Joined: Feb 25, 2010
Posts: 24
hi everyone!

i have a text box that do not accept alpha numeric characters but it accept numeric characters. How can i do that?
Abhilash Etikala
Ranch Hand

Joined: Nov 08, 2009
Posts: 38

You can use jFormattedTextField which accepts only numeric values according to the specified format...


Hope this helps...

Regards
Abhilash
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: swing ignoring alphanumeric characters but accepting numeric characters
 
Similar Threads
Regular expression for numeric copy
Numeric/Alphabetic chars
Amout validation
Restricted JTextField problem
How to Create a Unique 16 Character String