470,849 Members | 1,109 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

In JEditorPane how to go to the first line programmatically

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?

Ahmet Aksoy
Jul 18 '05 #1
0 2311

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Jason | last post: by
1 post views Thread by Bernie Hunt | last post: by
3 posts views Thread by aryan24 | last post: by
1 post views Thread by ksr04 | last post: by
1 post views Thread by jhardman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.