How to adjust position of scroll in the scrollpane

Posted by Sunil Kumar Sahoo on Stack Overflow See other posts from Stack Overflow or by Sunil Kumar Sahoo
Published on 2010-03-30T11:35:20Z Indexed on 2010/03/30 11:53 UTC
Read the original article Hit count: 532

Filed under:
|

I have created JTextpane and inserted components inside textpane (components like Jtextarea). (vertical scrollbar of )Jscrollpane of JTextpane is automatically set to bottom when I insert new components in that JTextpane. I want to keep it to be set to the top position. How can I do this

Thanks Sunil Kumar Sahoo

© Stack Overflow or respective owner

Related posts about java

Related posts about swing