It's now possible to write with the EditorKit which gives us the possibility to change the postion of the caret.