Ive got a Java 3D applet running in a browser and was wanting to allow users to make it fullscreen if they want to. I looked at graphicsDevice.setFullScreenWindow but this seems to only work for frames and not applets.
You can do:
JFrame f = new JFrame();
f.add( applet );
and set the JFrame fullscreen.
Thanks, that worked.
Is there a way to revert back to the applet ie switch away from the fullscreen frame? I tried
but the frame (f) remains visible and the applet remains black.
and didnt help.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.