This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: swing ignoring alphanumeric characters but accepting numeric characters
 
Similar Threads
Regular expression for numeric copy
Numeric/Alphabetic chars
Restricted JTextField problem
Amout validation
How to Create a Unique 16 Character String