> What about setCaretPosition? I needed to move the cursor to the end of
> the text that I entered, and I used setCaretPosition
Yeah, that seems much simpler. I don't know if takes care of scrolling
when the new caret position isn't yet visible. Just a case of trying it
out, I guess.
And setCaretPosition also changes the position of the input caret, but
if OP doesn't mind, he/she should use this.

Signature
Regards,
Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
ni4ni - 01 Feb 2005 15:26 GMT
setCaretPosition did not work for me (I tried it before posting my
question).
Anyway, I ended up using
myJScrollPane.getVerticalScrollBar().setValue() after I realized that
scrolling to the right line is good enough for me.
Thanks
Guy