LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: stenb on March 10, 2015, 09:44:39

Title: Issue with mouse focus through JME3 / Netbeans
Post by: stenb on March 10, 2015, 09:44:39
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.
Title: Re: Issue with mouse focus through JME3 / Netbeans
Post by: abcdef on March 10, 2015, 16:03:23
which os are you on?
Title: Re: Issue with mouse focus through JME3 / Netbeans
Post by: stenb on March 11, 2015, 09:19:49
This is on Win7 Enterprise. I'm currently building with Java 8u11 if Java version can have an effect.
Title: Re: Issue with mouse focus through JME3 / Netbeans
Post by: abcdef on March 11, 2015, 10:51:55
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)
Title: Re: Issue with mouse focus through JME3 / Netbeans
Post by: stenb on March 11, 2015, 10:57:19
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.