On Oct 24, 2004, at 5:00 PM, Miguel wrote:


Miguel,

I noticed that when I start Jmol and type 'show model' in the script
window after the 'Script Completed $' prompt, I get an exception thrown
at me. After that the '$' is at the beginning of the line and I don't
get the exception anymore.
Just thought I'd let you know.

This is related to the swing class that is being used for the script window.


Interestingly, it doesn't happen on all platforms.

I suspect that it could be addressed by simply writing some text at the
beginning of the window ... so that the cursor is not positioned at the
beginning.

We could output the Jmol version number and the Java version number at the
beginning.


You could experiment with this if you wanted to.

You must be kidding me! I tried to look at that code and couldn't figure out what is going on. It looks like a bad position exception occurs (even though it is output as an IllegalArgumentException), thrown in the JTextComponent.setCaretPosition, which further back comes from ScriptWindow.java:433 (the setCaretPosition call) and even further back at ScriptWindow.java:268 (the super.processKeyEvent(ke).
The reason I don't get it is that I don't understand why a processKeyEvent is executed to begin with...


René


------------------------------------------------------- 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

Reply via email to