Using some code from a forum, I have been trying to make my J3D app
full screen.  The main reason for doing this is so that I can change
the resolution to whatever I want.

GraphicsDevice dev =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice
();
GraphicsConfiguration gc = dev.getDefaultConfiguration();
DisplayMode mode = new DisplayMode(800, 600, 32,
DisplayMode.REFRESH_RATE_UNKNOWN);
setUndecorated( true );
setIgnoreRepaint(true);
show();
dev.setFullScreenWindow(this);
dev.setDisplayMode(mode);
createBufferStrategy(numBuffers);
BufferStrategy bufferStrategy = this.getBufferStrategy();

However, when I run it the Canvas3D part of the display flickers badly
and none of the controls respond.  They are a KeyNavigator behavior and
a KeyListener on the Canvas3D.  It look slike it may have the refresh
rate totally wrong, but the Panel at the bottom is OK.  I have tried
setting the refresh rate manually to one I know I have, but I just get
a 'java.lang.InternalError: Could not set display mode'.  The last two
lines, show() and setIgnoreRepaint() don't seem to make any difference.
 I'm using OpenGL J3D.

Is there a way to make this work, or to set the resolution in a Frame?

Thanks

===========================================================================
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".

Reply via email to