Description
If you create an empty TextPane Document, then type Enter to create a new line, the caret remains on the first line. It only moves to the new line when you type another character. The same behavior happens when you try to click with the mouse on the empty line, and when calling "setSelection" to the empty line. All result in the selection being displayed on the line above.