Not recommended to multi-thread a Swing application!?! Maybe you're thinking about changing Swing components in threads other than the event-loop thread. You shouldn't do this, see the paragraph below describing how to handle that situation. You definitely can (and for many applications, certainly should) multi-thread Swing applications. Lee, you are using invokeLater or invokeAndWait to make changes to your Swing components, aren't you? If not, remember that all changes made to Swing components anywhere other than in their listeners must be made via SwingUtilities.invokeLater or SwingUtilities.invokeAndWait. Details are available in any Swing programming book. Barring that, have you tried running your application with -Xrunhprof:monitor=y to monitor object lock contention? Bobby ----Original Message Follows---- From: Daniel Selman <[EMAIL PROTECTED]> Subject: Re: [JAVA3D] Update of swing object during 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". _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. =========================================================================== 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".
