Re: Setting proper window size with NEWT
Posted by zeeawk on Aug 19, 2012; 6:51pm
URL: https://forum.jogamp.org/Setting-proper-window-size-with-NEWT-tp4025780p4025835.html
Sorry for the late reply. Unfortunately that doesn't work quite right.
SystemTray.getSystemTray().getTrayIconSize.getHeight() returns the size of the icons in the System Tray.
The height (at least on my machine) of System tray icons is 16 which is not the right size of the Task bar which is 40 (on my machine).
Having a newt method to return the size of that task bar would be ideal or perhaps a newt equivalent to this:
java.awt.Rectangle windowSize = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
final int taskBarHeight = screenSize.height - windowSize.height;