Scroll to top in editors

This commit is contained in:
Jindra Pet��k
2014-02-26 19:55:53 +01:00
parent 78f01f0c1f
commit 285143b0a3
@@ -60,12 +60,14 @@ public class LineMarkedEditorPane extends UndoFixedEditorPane {
public void setText(String t) {
lastLine = -1;
super.setText(t);
setCaretPosition(0); //scroll to top
}
@Override
public void setText(String t, String contentType) {
lastLine = -1;
super.setText(t, contentType);
setCaretPosition(0); //scroll to top
}
@Override