I’m trying to make a basic display in LWJGL and it gets an error
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method setDisplayMode(org.lwjgl.opengl.DisplayMode) in the type Display is not applicable for the arguments (java.awt.DisplayMode)
The constructor DisplayMode(int, int) is undefined
This is all I have in my code.
import java.awt.DisplayMode;
import org.lwjgl.opengl.Display;
public class MAin {
public MAin() {
try {// It makes me add 4 arguments
Display.setDisplayModeAndFullscreen(new DisplayMode(500, 500));
Display.setTitle("GAME");
Display.create();
} catch (LWJGLException e) {
e.printStackTrace();
}
}
public static void main(String []args) {
new MAin();
}
}