Lee,

In general it is not recommended to multi-thread a Swing application (which
it seems like you are doing). I forget the technical details (I have done
it) but there are some specific calls within which you are permitted to do
multi-threaded updates. I vaguely remember that you can register an object
that implements Runnable with Swing... (?) There was a good article on the
subject on the SUN site I think.

Sorry I can't give more help!

Sincerely,

Daniel Selman


At 09:06 AM 9/26/00 -0400, you wrote:
>HELP!
>I have an application that updates several JEditorPanes with new HTML
>pages during a Behavior.processStimulus().  Frequently, right after the
>second or third JEditorPane.setPage(), my whole process hangs up.  I
>have called Canvas3D.stopRenderer() before doing the page updates, then
>I do a Canvas3D.startRenderer() after the page update, but it never gets
>to this second call.
>
>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?
>
>This is aggravating because it does not happen all the time...
>
>-Lee
>
>J. Lee Dixon
>Software Engineer
>SAIC - Celebration, FL
>[EMAIL PROTECTED]
>
>===========================================================================
>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".

Reply via email to