*
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
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
 
wood burning stoves
 
subject: swing ignoring alphanumeric characters but accepting numeric characters
 
Similar Threads
Numeric/Alphabetic chars
How to Create a Unique 16 Character String
Regular expression for numeric copy
Amout validation
Restricted JTextField problem