-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 25 October 2004 14:02, Ren� Kanters wrote: > 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.
Maybe we should just split input and output? Or find a good widget on the internet to do this? It's not something specific for Jmol, so we should not spend too much time on it... Egon - -- [EMAIL PROTECTED] - --------------------------------------- CDK: http://cdk.sf.net/ JChemPaint: http://jchempaint.sf.net/ Jmol: http://www.jmol.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (SunOS) iD8DBQFBfOzzd9R8I9Yza6YRApTUAJ9ifSoI6c25dQ2SOAb99UOWp/3AxgCfTQYU pDULZp9K3rSPlMSrEECayg8= =KvVh -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
