Results 1 to 2 of 2
  1. #1
    Saran185 is offline Member
    Join Date
    Jan 2011
    Rep Power

    Post cursor position in text area

    hi can anyone pls help me with this.....
    I ve to get the character tat the mouse points to at the current position in textarea. im running the java code in netbeans.
    The below code does the following
    - using file chooser we select a txt file from the system.
    - the txt file opens in the textarea.
    - the total words in txt file is counted n displayed in a label.
    now i want to get the character at the current mouse cursor position in the txt file tat is displayed on the textarea.

    i ve attached my code....
    but its not working as expected....i m not getting any error..but not able to get the position of the current cursor position.
    Attached Files Attached Files
    Last edited by Saran185; 02-02-2011 at 09:13 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    Post your code within tags so that it retains its formatting.

    And are you going to abandon this thread just like you did with the earlier one?


Similar Threads

  1. Replies: 0
    Last Post: 12-09-2010, 06:56 PM
  2. Replies: 0
    Last Post: 09-28-2010, 10:52 AM
  3. Show Text with cursor
    By ravjot28 in forum AWT / Swing
    Replies: 3
    Last Post: 01-20-2010, 10:30 PM
  4. how to point cursor on the 1st text field in a jframe
    By VineetKumar in forum AWT / Swing
    Replies: 4
    Last Post: 04-17-2009, 03:58 PM
  5. Java Developer position-San Francisco Bay Area
    By perphekto in forum Jobs Offered
    Replies: 1
    Last Post: 03-05-2009, 08:31 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