I use
graphicsDevice.setFullScreenWindow(null); /switching to windowed mode/
and graphicsDevice.setFullScreenWindow(window); /switching to full screen/
i also set the display to 1024, 768, 32, 60
The problem arrises when i start switching frmo or to full screen.
My app is using 1024, 768 resolution, i use 1152x864 for my desktop and that is the problem. When switching TO full screen i find myself having a 1152x768 or whatever i.e extra width added to my JFrame, the resolution is still 1024, 768 so my JFrame actually goes outside the screen.
What is the setMaximumsSize for anyway if they do not work. I want my maximum and only JFrame size to be 1024, 768 and I do not know how to ensure it.
of 1024x768 and that is despite me using updateUI(), setSize(1024, 768) or repaint() afterwards.