@Override
    public int getWindowYPosition() {
        int result = Display.getY();
        return result;
    }
Returns the screen Y coordinate of the top edge of the content area.

@return the screen Y coordinate
jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java