Sniff, sniff. I'm teary-eyed. All the responses have been so helpful.
Alas, my problem is fixed. Hey everybody, group hug. ;)
Seriously, thanks for all the great help everybody. I created a small
Runnable that updates the HTML pages and did the invokeAndWait() call.
Works like a charm.
Thanks again.
Lee
-----Original Message-----
From: Niklas Mehner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 26, 2000 10:10 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Update of swing object during
Behavior.processStimulus()
"J. Lee Dixon" wrote:
> I assume it is some type of race condition, but I don't know what to
do
> about it. Any ideas? Should I not be updating swing components from
> within a Behavior? If not then where?
Swing does not support multiple threads. You have to use
javax.swing.SwingUtilities.invokeAndWait(Runnable doRun) or
invokeLater()
to update components from a different thread.
Niklas
========================================================================
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff JAVA3D-INTEREST". For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".