[java] Window Events
I'm looking through all of the window events, but I don't see one for maximizing a window. There is minimizing (iconify), restoring (deiconify), but nothing to check if it's been set to full screen resolution.
Whoops, sorry, I got to this post through the active topics, didn't notice it's a Java forum [smile] Kindly disregard...
Well one way to do it would be to check which resolution your screen is currently in and then set the size of the window to it. This is not close to perfect though... but it's all I can think of without looking at the API...
EDIT: just had a loop around and I found Frame.getMaximizedBounds(), which later can be used to set the bound of the frame to it's maximized position...
EDIT: just had a loop around and I found Frame.getMaximizedBounds(), which later can be used to set the bound of the frame to it's maximized position...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement