LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Itun on April 03, 2011, 19:46:54

Title: maximize a window
Post by: Itun on April 03, 2011, 19:46:54
Hi!
How to maximize a window when it is opening and how to make it resizable?
Thank you!
Title: Re: maximize a window
Post by: kappa on April 04, 2011, 00:02:03
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 (http://www.lwjgl.org/wiki/index.php?title=Basic_LWJGL_Applet) on wiki for an example on how to stick a native display onto a AWT Canvas using Display.setParent().
Title: Re: maximize a window
Post by: Itun on April 04, 2011, 04:24:48
I suppose this will lead to loss of performance.