protected void setWindowIcon(final AppSettings settings) {
        if (glfwGetPlatform() == GLFW_PLATFORM_WAYLAND) {
            // Wayland doesn't support custom icons.
            return;
        }

        final Object[] icons = settings.getIcons();
        if (icons == null) return;

        final GLFWImage[] images = imagesToGLFWImages(icons);

        try (final GLFWImage.Buffer iconSet = GLFWImage.malloc(images.length)) {
            for (int i = images.length - 1; i >= 0; i--) {
                final GLFWImage image = images[i];
                iconSet.put(i, image);
            }

            glfwSetWindowIcon(window, iconSet);
        }
    }
Set custom icons to the window of this application.

@param settings settings for getting the icons
jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java