Re: [JAVA3D] Issue with Runtime instantiation of Canvas3D

2004-07-09 Thread N. Vaidya
>On Fri, 9 Jul 2004 09:35:44 -0400, Mike Pilone <[EMAIL PROTECTED]> wrote: >Hello, > >I tested the code you posted in the HelloUniverse and it never caused >deadlock. I also modified the code to create a new frame and show it with >the canvas. This also worked. > >Linux/J2SDK 1.4.2_04/OGL/Java3D 1

Re: [JAVA3D] Issue with Runtime instantiation of Canvas3D

2004-07-09 Thread Mike Pilone
listener will be called from the swing thread. -mike -Original Message- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] On Behalf Of N. Vaidya Sent: Thursday, July 08, 2004 8:48 AM To: [EMAIL PROTECTED] Subject: [JAVA3D] Issue with Runtime instantiation of Canvas3D Hmm...This

Re: [JAVA3D] Issue with Runtime instantiation of Canvas3D

2004-07-08 Thread N. Vaidya
Paul, Thanks for the response. As a first shot, tried to create the Canvas3D in the processStimulus() method of a Behavior that does a postId() to itself. With that approach, I can continue to create as many Canvas3Ds as I want by pressing the JButton repeatedly, BUT the app. freezes after the cr

Re: [JAVA3D] Issue with Runtime instantiation of Canvas3D

2004-07-08 Thread Paul Byrne
I bet this is causing a deadlock in the swing code. Try using a Swing WorkerThread so create the Canvas3D rather than doing it directly in the swing event thread. Rgds Paul N. Vaidya wrote: Hmm...This is really weird. All I'm trying to do is to instantiate a Canvas3D in Swing's EDT - simply instant

[JAVA3D] Issue with Runtime instantiation of Canvas3D

2004-07-08 Thread N. Vaidya
Hmm...This is really weird. All I'm trying to do is to instantiate a Canvas3D in Swing's EDT - simply instantiate and not even add it to the View - and I find that causes the app. to freeze. The testcase is HelloWorld.java in the Java3D demo bundle with the inclusion of the following code snippet