Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

In JEditorPane how to go to the first line programmatically

45 views
Skip to first unread message

Ahmet Aksoy

unread,
Mar 25, 2005, 3:58:09 AM3/25/05
to
Hi,
I have a JEditorPane. It is filled with some data read from somewhere.
While adding new lines, JEditorPane scrolls up.
At the end of the action, the last line is at the focus.
But, I want the first line to be visble.
How can I jump to the first line automatically?

Or, is it possible to stop the pane from scrolling while appending new lines?

TIA
Ahmet Aksoy

0 new messages