Less obtrusive focus

How can I change windowed (i.e., non-fullscreen) jME apps to release focus when the mouse cursor leaves the app window (and permit the mouse cursor to leave the window) like normal windowed apps do?  I realize that I can use desktop manager tricks (Alt-Tab et. al.), but I'm aiming for user friendly and intuitive.  I have searched the User Guide, the Forum, and even the Mouse classes in the API spec and the code base, and find nothing about this aspect of focus control.  I didn't have any problem controlling focus behavior with my Java3D apps.



No problem if I have to override some jME classes to accomplish this, even if I have to do some lwjgl coding, if somebody could please point me to which classes control the mouse/window focus behavior.

Have you tried using a hardware mouse?

I'm using standardgame.



import com.jme.input.MouseInput;
import com.jme.input.MouseInputListener;

MouseInput.get().setCursorVisible(true);


I didn't deduce that the problem was tied to mouse cursor visibility.  Fantastic.  You guys are great!  Thx.