Hi All
 
when i create a viewer it creates it own frame and panel which i don't want and i cant really
create the viewer object with a canvas3d as the viewer creations happens before the creation
of the canvas3d.
 
 
my code looks something like this:

    Viewer viewer = new Viewer();
    mUniverse3D = new SimpleUniverse(mViewingPlatform,viewer);
 
    mScreenBounds = mUniverse3D.getPreferredConfiguration().getBounds();
    mCanvas3D = mUniverse3D.getCanvas();
 
i tried creating a canvas3D with a null graphicsConfiguration object so now it looks like this:
    mCanvas3D = new Canvas3D(null);
    Viewer viewer = new Viewer(mCanvas3D);
    mUniverse3D = new SimpleUniverse(mViewingPlatform,viewer);
 
    mScreenBounds = mUniverse3D.getPreferredConfiguration().getBounds();
    mCanvas3D = mUniverse3D.getCanvas();
 
when i ran it i got this warning from the jvm
WARNING: Canvas3D constructed with a null GraphicsConfiguration.
is there a way to remove this warning ? are there any implications
for creating a canvas3D with a null GraphicsConfiguration ?
 
what is the best solution to this problem ?
 
thanks,

Ben Arbel
Xtivia Technologies
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.xtivia.com
http://www.comsoft.co.il
work phone(NJ): 732 248 9399
work phone(Israel):  972-2-9598999

 

Reply via email to