With a
bit more debugging and stepping through stuff, it seems that the line that
causes all the trouble is this one:
public
Canvas3D View3D= new
Canvas3D(SimpleUniverse.getPreferredConfiguration());
Is
there something wrong with the way I'm doing this, or is there a better way to
find a good configuration?
-ben
-----Original Message-----
From: Ben Moxon
Sent: 02 July 2003 10:28
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Adding a Canvas3D at runtimeThe Canvas3d fits within its boundaries fine, its just when it is first shown this black rectangle appears over the center of my screen - looking at it now I think it is the same size as my application but drawn right in the centre of the monitor. The rectangle does not show any of the canvas image, just plain black, The only thing that draws over it ( until I resize the application window or move stuff across the background where it is covered) is the Canvas3d. A call to repaint() in the root frame after the Canvas3d is added has no visible effect.Experimenting a bit I find that I get the same effect if I run two java3d applications simultaneously. Could this be a consequence of creating a second Canvas3d?-ben-----Original Message-----In a message dated 7/1/2003 12:04:27 PM Pacific Daylight Time, [EMAIL PROTECTED] writes:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 01 July 2003 22:30
To: Ben Moxon
Subject: Re: [JAVA3D] Adding a Canvas3D at runtime
Am I doing something wrong with Java3D
My multiple pane GUI, made up of all swing components, uses a single pane for the Java3DCanvas without the difficulty that you describe. I am using Java 1.4.1 on a Dell 4100 system running with Windows2000 Professional. Regardless of the window size, the canvas fits within its boundaries.
