I'm trying to make the window fit to any screen resolution (1080/720, 1680/1050, etc).
I have it so that it resizes images to scale with your resolution and I made it so that the world's height take into account the height of the taskbar using this: But I have no idea how to also account for the height of the system's window header inset.
I don't want to manually give it a value because the header could have a different size if the system preferences had a larger font.
Any help is appreciated!
windowSize = GraphicsEnvironment.getLocalGraphicsEnvironment().
getMaximumWindowBounds();
