File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Only Alpha or numeric chars in JTextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Only Alpha or numeric chars in JTextField" Watch "Only Alpha or numeric chars in JTextField" New topic
Author

Only Alpha or numeric chars in JTextField

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
How can you set up a JTextField to only access either alpa or numeric
characters?

Thanks.
Don Kiddick
Ranch Hand

Joined: Dec 12, 2002
Posts: 580
Write a DocumentFilter. Check here.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Only Alpha or numeric chars in JTextField
 
Similar Threads
JTextField Validation
JTextField problem
JTextField swings
JTextField
validating user input for number of seats