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
Here’s a utility class I use. It can be used to scroll to the top, bottom, left, right or horizonatal / vertical center of a
JScrollPane.