Hi,
You can do this:
pane.setCaretPosition(0);
which sets the cursor to the first element in your doc, or
pane.scrollRectToVisible(new Rectangle(0,0,1,1));
Have a play, see which works best for you..
Steve
> Hi,
> I have a JEditorPane.
[quoted text clipped - 5 lines]
> TIA
> Ahmet Aksoy
Ahmet Aksoy - 26 Mar 2005 09:11 GMT
Hi Steve,
setCaretPosition(0);
solved the problem. Thank you very much.
Ahmet Aksoy
> Hi,
>
[quoted text clipped - 19 lines]
> > TIA
> > Ahmet Aksoy