Login  Register

Re: Centering a Newt window?

Posted by adi on Oct 15, 2012; 10:30pm
URL: https://forum.jogamp.org/Centering-a-Newt-window-tp4026458p4026503.html

I also have had that problem, if i use GLWindow.

First after a setVisible(true) the correct screen coordinates can
get from getScreen().getWidth() and getScreen().getHeight(),
so i must use
Dimension screenSize         = Toolkit.getDefaultToolkit().getScreenSize();