jogamp
›
jogl
Login
Register
Re: How to tell if a newt window is maximized?
Posted by
gouessej
on
Feb 23, 2012; 9:22am
URL:
https://forum.jogamp.org/How-to-tell-if-a-newt-window-is-maximized-tp3767837p3769149.html
Hi
At first, NEWT is cross-platform, your problem is the same on any operating system, it is not windows-specific.
There is a method to set the top level size (including insets):
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/newt/opengl/GLWindow.html#setTopLevelSize(int,%20int)
You can get the size of the insets here:
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/newt/opengl/GLWindow.html#getInsets()
In my humble opinion, just get the screen size (look at my source code, in the main class, I do it without AWT) and use it with GLWindow.setTopLevelSize().
Julien Gouesse |
Personal blog
|
Website
Free forum by Nabble
Edit this page