Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Swing / AWT / SWT and the fly likes move curser marker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "move curser marker" Watch "move curser marker" New topic

move curser marker

sara rod

Joined: Dec 07, 2009
Posts: 23

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?

Chris Nash

Joined: May 20, 2009
Posts: 28
Not that I've ever done it, but from looking at the API, it looks like setCaretPosition() will do the trick. HTH

- Frecklefoot
"What you are good at is not as important as being good at something." --Robert B.Parker
I agree. Here's the link:
subject: move curser marker
Similar Threads
Marker Interface
marker interface
One cool Tip..
Best Way to memorize all this !
JSlider and JMF