• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

text field

 
Lavanya Balaraman
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to restrict Jtextfield only for text
pleases help me
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By "only text" i presume you mean only alphabets.
Here is a link for a text field which allows only numbers. You can modify it to allow only alphabets.
http://faq.javaranch.com/java/NumericTextField

..and Welcome to the Ranch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic