Results 1 to 4 of 4
- 05-25-2010, 12:32 PM #1
Member
- Join Date
- May 2010
- Posts
- 47
- Rep Power
- 0
How restrict TextArea that it only contain stirngs
Hi,
Hope you all are fine. Can any one tell me if i want that my TextArea contain only string then how can i do it. Means if user type only alphabets then letters types in text area but if user try to enter any thing other than alphabets then it shouldn't type in the textarea. I saw the constraint but i didn't see any constraint regarding string. There are NUMERIC, ANY but no one like STRING.
Thanks
- 05-25-2010, 12:47 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Careful about what you are looking for here because you will most likely cripple your application. Which alphabets are you talking about? What does the text box represent?
- 05-25-2010, 12:55 PM #3
Member
- Join Date
- May 2010
- Posts
- 47
- Rep Power
- 0
Hi :),
Thanks. It contains only text message. Contains only alphabets A-Z or a-z. But no numeric value. It cantains fullstop(.), comma(,), etc but no numeric value.
Thanks.
- 05-25-2010, 12:59 PM #4
Use a DocumentFilter.
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
Similar Threads
-
How to restrict the url accessing
By jazz2k8 in forum Advanced JavaReplies: 9Last Post: 05-25-2009, 12:59 PM -
logic to restrict the user from entering the password morethan thrice?
By kavitha_164951 in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-12-2008, 02:18 PM -
restrict users from entering the image/text files path directly in the browser.
By vishnujava in forum Java ServletReplies: 6Last Post: 08-06-2008, 01:41 PM -
TextArea Bug?
By Soda in forum New To JavaReplies: 2Last Post: 12-07-2007, 12:37 PM -
textarea
By ubuntu in forum AWT / SwingReplies: 4Last Post: 05-12-2007, 09:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks