Login  Register

Re: Setting proper window size with NEWT

Posted by gouessej on Aug 11, 2012; 6:06pm
URL: https://forum.jogamp.org/Setting-proper-window-size-with-NEWT-tp4025780p4025785.html

Pixelapp wrote
I think this is what you need:

.setUndecorated(false);
.setFullscreen(true);

This maxes out the window without hiding the task bar. In Microsoft Windows at least.
This is not the expected behavior, it should allow the NEWT window to be drawn above the task bar. If the task bar is still visible, it is a bug. I tested my game under Windows several weeks ago and the task bar was not displayed above the NEWT window.

zeeawk, getInsets() returns the size of the window decoration, this is not what you want. Actually, there is not yet any way of getting the size of the task bar if any.
Julien Gouesse | Personal blog | Website