Keeping output frame scrolled to the top after insertion with a setCaretPosition invoked later