Hi,
I noticed that if I comment out the
consoleTextPane.setCaretPosition(offs + str.length());
(line 433 in ScriptWindow.java)
The 'bad location' is not trown at me any more.
Checking the JTextComponent.setCaretPosition method in Java reference 1.4.2 says:
"Note that the caret tracks change, so this may move if the underlying text of the component is changed."
So maybe, it wasn't necessary anyway.
Not sure whether that is the same for all swing implementations on all VMs.
Ren�
- [Jmol-developers] setCaretPosition René Kanters
- Re: [Jmol-developers] setCaretPosition E.L. Willighagen
- Re: [Jmol-developers] setCaretPosition E.L. Willighagen
