Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Only Alpha or numeric chars in JTextField  RSS feed

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can you set up a JTextField to only access either alpa or numeric
characters?

Thanks.
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write a DocumentFilter. Check here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!