Results 1 to 4 of 4
  1. #1
    Basit781 is offline Member
    Join Date
    May 2010
    Posts
    47
    Rep Power
    0

    Question 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

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    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?

  3. #3
    Basit781 is offline Member
    Join Date
    May 2010
    Posts
    47
    Rep Power
    0

    Default

    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.

  4. #4
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default

    Use a DocumentFilter.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. How to restrict the url accessing
    By jazz2k8 in forum Advanced Java
    Replies: 9
    Last Post: 05-25-2009, 01:59 PM
  2. logic to restrict the user from entering the password morethan thrice?
    By kavitha_164951 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-12-2008, 03:18 PM
  3. Replies: 6
    Last Post: 08-06-2008, 02:41 PM
  4. TextArea Bug?
    By Soda in forum New To Java
    Replies: 2
    Last Post: 12-07-2007, 01:37 PM
  5. textarea
    By ubuntu in forum AWT / Swing
    Replies: 4
    Last Post: 05-12-2007, 10:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •