Stop Camera in Swing

Hello everyone!

How to stop the flyCam from moving around arbitrarily, when the JME Canvas looses Focus on a JFrame? I’ve tried already to use a Robot as well as the JME ActionListener, with no success.


perhaps :

[java]flyCam.setEnabled(false);[/java] in a lostFocus() event handler?, then enable it again, when it gains focus, never used a JFrame with jme, but i assume its possible