Two Laptop Bag*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
Consider Paul's rocket mass heater.
 
subject: Only Alpha or numeric chars in JTextField
 
Similar Threads
JTextField Validation
JTextField problem
JTextField swings
JTextField
validating user input for number of seats