Resizing the window

Im just wondering how I should go about setting my window up so that its size can be altered by use of the mouse, anyone know where there is sample code on this or have any?

Actually to be honest I am unsure how to get the mouse running in LWJGL in general, the API is causing me some issues at the moment :-/

Okay an update, at the moment I am trying to execute this code:

if (!Mouse.isButtonDown(Mouse.getButtonCount()-1));
{
System.out.print(“Whaaa!!”);
}

Which is printing output constantly

This code on the other hand:
if (Mouse.isButtonDown(Mouse.getButtonCount()-1));
{
System.out.print(“Whaaa!!”);
}

Does exactly the same thing!!! Has anyone any clues whyn this may be happening because I dont

:o

[quote]Im just wondering how I should go about setting my window up so that its size can be altered by use of the mouse, anyone know where there is sample code on this or have any?
[/quote]
If mean by letting the user drag the corner of the window, then it is not possible in LWJGL.

Generally, if you’re doing something that requires interaction with the desktop (e.g. 3D visualization), then JOGL/JOAL/JInput is a better choice. LWJGL is explicitly focused on full screen gaming that has no dependencies on AWT.

LWJGL works perfect for Rimscape in windowed mode :slight_smile:

I haven’t even been able to set the location of the LWJGL window using Display.setLocation(). It doesn’t work. Any comments about this?

Got the latest version? It should work, I think.

Cas :slight_smile:

remove the “;” in the “if” line :slight_smile:

LOL! That’s a tricky one to spot.

Cas :slight_smile: