Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    3
    Rep Power
    0

    Default How to get the position of character in TextArea

    Hi, Does anyone know how to get the position of a character in TextArea field?

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default

    When you submit your form that contains a textarea you can get its value using the request.getParameter() method. After you get the value just use the String.indexOf() method to locate the first character found in the string.

Similar Threads

  1. BorderFactory to set position?
    By aleplgr in forum AWT / Swing
    Replies: 2
    Last Post: 01-30-2008, 12:46 PM
  2. reading text character by character
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-09-2007, 08:54 PM
  3. Help with position in java
    By fernando in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 07:54 PM
  4. Use the mouse position
    By susan in forum Java Applets
    Replies: 1
    Last Post: 07-28-2007, 11:10 PM
  5. textarea
    By ubuntu in forum AWT / Swing
    Replies: 4
    Last Post: 05-12-2007, 09: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
  •