John (and Mario), It is easy to catch window events in an application. Just add a WindowListener to your top-level frame and add your own code for "windowIconified", "windowDeiconified", and others. The WindowAdapter class is an easy way to start. Maybe your "windowIconified" method could even startup your own thread to handle the underlying sim and net operations.
But maybe that's not really your issue. Maybe you have an applet instead of an application? If that's the case, then I have no real ideas. I don't know how to catch the browser's iconification --- maybe JavaScript could help out there or you could bring up your own frame(s) within your applet and handle as mentioned above??? As to the more general problem of threading (in your simulations). Both of you might want to have sim or network handling threads which do your "important" work and then control what values will be used by Java3D. Of course you will have to be careful with synchronization so that your "sim/net" thread does not step on the Java3D stuff. There should be some way to make it all work... Brian --- Brian Kubena NASA / Johnson Space Center Flight Design and Dynamics Division, DM12 [EMAIL PROTECTED] -----Original Message----- From: John Wright [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 6:39 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] ? Behavior WakeupOnElapsedTime ? Mario, Yes, when a Java 3D app is minimized it goes to sleep (behaviors stop executing). Because of this behavior we've been trying to find a way to prevent users from minimizing our application (so far I haven't found a way to prevent that). This is a real problem for us as we need to process network communication whether or not the application is minimized. - John Wright Starfire Research "ZACZEK, MARIUSZ P. (JSC-DM) (NASA)" wrote: > > Hi, > This is what I declare in my behavior for wakeup conditions: > > int samplingtime = 1; > WakeupOnElapsedTime conditions = new > WakeupOnElapsedTime(samplingtime); > > I notice this situation...when I run my code I have my behavior update the > value inside a textbox in a swing portion. BUT, when I minimize the window > this value does seem to change...basically given the wakup condition this > value should be increasing by 1 every 1 millisecond (samplingtime = 1), > but > instead the value seems to be stopped...I can keep the window minimized > for > a long time and once I restore it I only then see the value change. By > that > time the value should already have increased by several hundred. It almost > seems like the conditions are based on frames and not on elapsed time. Has > anyone seen this kind of problem? > > Mario > > Mariusz Zaczek > NASA - Johnson Space Center > Automated Vehicles and Orbit Analysis / DM35 > Flight Design and Dynamics Division > Mission Operations Directorate > Bldg: 30A Room: 3040A > > Disclaimer: "The opinions, observations and comments expressed in my email > are strictly my own and do not necessarily reflect those of > NASA." > > =========================================================================== > 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". =========================================================================== 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".