Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Position of cursor in JTextarea.  RSS feed

 
Anu
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any of u guys let me know how to find position of the cursor in the JTextarea object.

Thanx in advance
Anukampa
 
Matt Senecal
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think JTextArea.getCaret().getDot() might be what you're looking for.
[ October 23, 2002: Message edited by: Matt Senecal ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!