Package org.lwjgl.glfw

Contains bindings to the GLFW library.

GLFW comes with extensive documentation, which you can read online here. The Frequently Asked Questions are also useful.

On macOS the JVM must be started with the -XstartOnFirstThread argument for GLFW to work. This is necessary because most GLFW functions must be called on the main thread and the Cocoa API on macOS requires that thread to be the first thread in the process. For this reason, on-screen GLFW windows and the GLFW event loop are incompatible with other window toolkits (such as AWT/Swing or JavaFX) on macOS. Off-screen GLFW windows can be used with other window toolkits, but only if the window toolkit is initialized before GLFW.