|
taken from www.j3d.org I wrote an Applications which uses fullscreen with OpenGL
with the effect, that it doesnt work on every machine. 9. How do I get Java 3D in fullscreen mode?
There are two ways of accomplishing this. The first is to use JDK 1.4 or later. These have API calls for creating fullscreen windows directly. If you need to use an earlier version of the JDK, then follow these instructions: For DirectX 6.1, you can set the Java property, j3d.fullscreen to one of the following values:
For instance, to run the HelloUniverse example program in fullscreen mode if it is available, the following command would be used: java -Dj3d.fullscreen=PREFERRED HelloUniverse For OpenGL, there is a workaround to make J3D look like it is operating in fullscreen by subclassing java.awt.Window. Essentially you create a new window instance that is exactly the same size as the current screen size. Window does not have all the borders that you normally get with Frame and Dialog. Toolkit tk = Toolkit.getDefaultToolkit(); Dimension d = tk.getScreenSize(); Frame f = new Frame(); Window w = new Window(f); w.setSize(d); Canvas3D canvas = new Canvas3D(); w.add(canvas); w.setVisible(true);
|
- [JAVA3D] how to set full screen at compile time? Vincent
- Re: [JAVA3D] how to set full screen at compile time? Silvio Simone
- Re: [JAVA3D] how to set full screen at compile tim... Kevin Glass
- [JAVA3D] OpenGL Fullscreen and sun.java2d.nodd... Andrew Davison
- [JAVA3D] Problems quitting a Fullscreen ap... Andrew Davison
- Re: [JAVA3D] Problems quitting a Full... Jonathan Leong
- Re: [JAVA3D] Problems quitting a ... Andrew Davison
- Re: [JAVA3D] Problems quittin... Justin Couch
