Issue with mouse focus through JME3 / Netbeans

Started by stenb, March 10, 2015, 09:44:39

Previous topic - Next topic

stenb

I'm using the JMonkeyEngine3 through NetBeans, embedding JMEs Canvas component in a frame. I have problems with not being able to gain proper focus in the window - the mousepointer "floats" above the window as if it were in the background, and even clicking within the window itself does not give a retainable focus, focus is immediately lost the next frame.

I've tried different versions of JME, different versions of LWJGL, every type of frame you can cram a Component into (TopComponent, JFrame, JDialog) ... no dice. It seems this window focus issue might be an underlying issue with LWJGL.

Does anybody have any insights here? I'm stumped.

abcdef


stenb

This is on Win7 Enterprise. I'm currently building with Java 8u11 if Java version can have an effect.

abcdef

does the issue exist when you run the application from the command line? (On Linux I noticed weird behaviour with netbeans and running apps that require mouse focus)

stenb

I'm running the application from the binary, not through the Netbeans IDE.

The application itself is a Netbeans framework application, with a JFrame containing the JME3 window.