This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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