Newt: Fullscreen and Undecorated not working on Windows
Posted by Marc@56K on Mar 13, 2011; 12:14am
URL: https://forum.jogamp.org/Newt-Fullscreen-and-Undecorated-not-working-on-Windows-tp2671034.html
Hi,
I'm using jogl-v2.0-rc2 on Windows7 x64 with a 32Bit JDK and I want to create a fullscreen Newt-Window:
public class NewtFullscreenBug implements GLEventListener, WindowListener {
/**
* @param args
*/
public static void main(String[] args) {
GLProfile.initSingleton(true);
new NewtFullscreenBug();
}
public NewtFullscreenBug() {
GLWindow window = GLWindow.create(getGLCapabilities());
window.setAutoSwapBufferMode(false);
window.setSize(800, 600);
window.addGLEventListener(this);
window.addWindowListener(this);
window.setUndecorated(true); //not working
window.setFullscreen(true); //not working
window.setVisible(true);
while (true)
window.display();
}
@Override
public void display(GLAutoDrawable arg0) {
}
@Override
public void dispose(GLAutoDrawable arg0) {}
public GLCapabilities getGLCapabilities() {
GLProfile glp = GLProfile.get("GL2GL3");
return new GLCapabilities(glp);
}
...
setFullscreen and setUndecorated have no effect to the window. It still has a border an is not maximized to fullscreen.
p.s. I'm wondering why so many features of the Newt-Window which already worked on JOGL 2.0 Beta 10 are now so buggy on windows. Was the Newt-Window completely redeveloped after this JOGL-version or what is the reason for this fact?