Vincent,
 
As far as I know there is no way for the second application to own the first application's Canvas3D window (in the Windows sense). Each JVM will run as a separate process under Windows and without some trickery (which I'm pretty certain Swing couldn't do) the second process's windows will have no relationship (like child) to the windows of the first process.
 
The best you could do would do would be to have a top-level window (Viewer) that communicated with the second JVM using RMI. If the second JVM also needed windows they too would have to be top-level.
 
Sincerely,
 
Daniel Selman
 

Author - "Java 3D Programming"
http://www.manning.com/selman

-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Vincent St-Amour
Sent: Thursday, May 30, 2002 1:30 PM
To: [EMAIL PROTECTED]
Subject: JVM within a JVM ...

 
Hello,

I want to do some fancy stuff and I need your help ! Please.

I have 2 different applications.  One without Java3D and the other, the viewer, that shows the data from the first application ( with Java3D).     The 2 application communicate together via RMI.    We wanted to separate the 2 applications because we saw that the Java3D implementation is less stable then the pure Java one.      The first application needs to be very stable, that is why we didn't want to have a Canvas3D within our main application.

The first application is able to launch the Viewer on it's own and start the communication between the itself and the Viewer.

The idea we wanted to implement is to  launch the viewer, but to attach the output in an internal frame of the first appilcation.

  • Is that possible ?
  • What do you thing ?
Thank you very much,
 

Vincent St-Amour
 

Reply via email to