How to Validate JTextField in java swing,It should accept only Alphabets

Hi, Im memeber of this group.Can any one give me some idea and code to validate a JTextField in Java Swingso that it accepts only ALPHABETS. If possible can anyone give me code for itThanks,
[218 byte] By [Kalyani.Vadapallia] at [2007-10-3 3:25:21]
# 1
hi,use MaskFormatter go through the APIthanksdaya
dayanandabva at 2007-7-14 21:18:18 > top of Java-index,Desktop,Core GUI APIs...
# 2
http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#filter
Michael_Dunna at 2007-7-14 21:18:18 > top of Java-index,Desktop,Core GUI APIs...