Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

move curser marker

 
sara rod
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have textarea and I need to move the cursor marker - to the first line, it is by default in the end of the text.
how can I do that?

thanks.
 
Chris Nash
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that I've ever done it, but from looking at the API, it looks like setCaretPosition() will do the trick. HTH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic