When I add a large number of strings to a small JTextPane, the view always scrolls to the last string.
How can I stop it scrolling, or return the view to the top?
Here's what I'm doing (v is a Vector containing about a hundred String elements)...
Document doc = textPane.getDocument();
for (int i = 0; i < v.size(); i++)
doc.insertString(doc.getLength(), (String)v.elementAt(i), attrs);