Hi,
I don't mean an invisible frame. You just create a new Frame or JFrame
to use as a fullscreen frame.
ie.
JFrame frame = new JFrame();
frame.setUndecorated(true);
//Add code here to remove the Canvas3D from the old windowed frame
//oldContainer.remove(canvas3D);
//Add code here to add the Canvas3D to the old new frame
//frame.getContentPane().add("Center", canvas3D);
GraphicsEnvironment env =
GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice devices = env.getDefaultScreenDevice();
devices.setFullScreenWindow(frame);
Hope this helps,
David.
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Sent: Thursday, 29 April 2004 12:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Java3D and FullScreen?
But what do you mean by invisible frame? is it the Window class in the
API?
Andy
David Grace wrote:
>Hi,
>
>I think the best way to do this is create a separate fullscreen frame,
>then remove the Canvas3D from its original frame and add it to the new
>fullscreen frame. You can then swap it to the old frame when returning
>from fullscreen mode. This works seemlessly for me.
>
>This is because you can only call setUndecorated(true); on a frame
which
>has never been made visible.
>
>David.
>
>
>
>-----Original Message-----
>From: Discussion list for Java 3D API
>[mailto:[EMAIL PROTECTED] On Behalf Of Andy
>Sent: Thursday, 29 April 2004 7:10 AM
>To: [EMAIL PROTECTED]
>Subject: [JAVA3D] Java3D and FullScreen?
>
>Hi, anyone can provide me the code for making a Java3D application full
>screen enabled without any border decorations? Because my code
>generates errors saying that this window is displayable which is not
>able to take away the decorations:
>
>GraphicsEnvironment env =
>GraphicsEnvironment.getLocalGraphicsEnvironment();
>GraphicsDevice devices = env.getDefaultScreenDevice();
>devices.setFullScreenWindow(this);
>setDefaultLookAndFeelDecorated(false);
>setUndecorated(true);
>
>Many thanks,
>
>Andy
>
>=======================================================================
=
>===
>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".
>--
>Message protected by MailGuard: e-mail anti-virus, anti-spam and
content
>filtering.
>http://www.mailguard.com.au/mg
>
>=======================================================================
====
>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".
>
>
>
========================================================================
===
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".
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg
===========================================================================
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".