@Override
    public void setCursorVisible(boolean visible) {
        if (this.visible != visible) {
            grabLocation.x = lastKnownLocation.x;
            grabLocation.y = lastKnownLocation.y;

            this.visible = visible;
            final boolean newVisible = visible;
            SwingUtilities.invokeLater(() -> {
                component.setCursor(newVisible ? null : getTransparentCursor());
                if (!newVisible) {
                        recenterMouse(component);
                }
            });
        }
    }
<code>AwtMouseInput</code>

@author Joshua Slack
@author MHenze (cylab)

@version $Revision$
jme3-desktop/src/main/java/com/jme3/input/awt/AwtMouseInput.java