permaculture playing cards*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
jQuery in Action, 2nd edition
 
subject: swing ignoring alphanumeric characters but accepting numeric characters