Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Only Alpha or numeric chars in JTextField

 
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