Depends on what exactly you mean by "function" since in Java there is no such thing as a function. If you mean a "method" and by that you mean passing a reference to a Java method to a GLFW method expecting a callback interface type as a parameter, then you can simply use a Java Method Reference (since Java
.
This is a standard feature in Java 8 and applies to all interface-typed receivers, such as method parameters or local methods variables.