aspose 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.
 
Consider Paul's rocket mass heater.
 
subject: Only Alpha or numeric chars in JTextField