jtextfiled question

hi all,i have to create a calculation program and i'd like how to make a jtextfield accept only numbers (0 -> 9)?i mean : we cann't enter a string, only numbers are allowedthanks,
[219 byte] By [caroline2330a] at [2007-9-29 21:51:58]
# 1
there's a sample / tutorial on how to do it here http://java.sun.com/docs/books/tutorial/uiswing/components/formattedtextfield.htmlregards,Owen
omcgoverna at 2007-7-16 2:11:58 > top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...