This week's book giveaway is in the JavaScript forum.
We're giving away four copies of JavaScript Promises Essentials and have Rami Sarieddine on-line!
See this thread for details.
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 JavaScript Promises Essentials this week in the JavaScript 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Only Alpha or numeric chars in JTextField