Login  Register

Centering a Newt window?

Posted by Stephen on Oct 10, 2012; 4:36am
URL: https://forum.jogamp.org/Centering-a-Newt-window-tp4026458.html

Hi, I want to center a window that I've created with Newt on the screen.

I can probably use the Window.setTopLevelPosition or Window.setPosition methods.. though I need to determine the actual resolution of the screen, so that I can center the window, e.g. screenResolutionX/2, screenResolutionY/2..

How can I find the screen resolution?

Thank you,
Stephen