private int destinationCursorPosition = -1;
public ATETextPane(ATEPanel textEditor, StyledEditorKit editorKit) {
super(new DefaultStyledDocument());
setCaret(new ATECaret());
setEditorKit(editorKit==null?new ATEEditorKit(textEditor):editorKit);
this.textEditor = textEditor;
}