Keyboard input with jME Canvas in a Swing Window


I’ve got a jME3 Canvas in a Swing window. All is well, except the jME window seems to steal all the keyboard input regardless of whether it has focus or not. Actually… focus seems kinda messed up with it, it appears to try and steal the focus back constantly, but anyway, does anyone know what I might be able to try or where to look?.

I haven’t got a simple test case at this point, but I can put one together if no-one has ideas off the top of their head.


You have to say [java]flyCam.setDragToRotate(true);[/java] when you initialize your Application. See “Swing Canvas” entry in wiki.

Thanks. I ended up using AWT Panels instead. Works much better!