maximize a window

Started by Itun, April 03, 2011, 19:46:54

Previous topic - Next topic

Itun

Hi!
How to maximize a window when it is opening and how to make it resizable?
Thank you!

kappa

LWJGL's native window doesn't support resizing or maximising (you can however switch to fullscreen or recreate the window at a different size). To obtain the functionality that you mention you will need to use an AWT Frame and stick the native Display onto it using Display.setParent(Canvas). See the Basic Applet tutorial on wiki for an example on how to stick a native display onto a AWT Canvas using Display.setParent().

Itun

I suppose this will lead to loss of performance.