Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accepting only numbers in a text field

 
vinod kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai all
I want a text field(jformattedtextfield) which accepts only numbers.It should not even display the other characters.That is here i am not interested in focus listener.Is there any method by which on enter(key press) itself the validation can be done so that other nonintegers are not typed(not accepted by the text field).
 
Vijay Vaddem
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this....
 
vinod kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank u
it is working now.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic