Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Focus Problem

Hank P.Apr 19 2013 — edited Apr 25 2013
Hello!

I have a Swing Application containing a JFXPanel and a OpenGL Window, aligned by a GridPane. The swing window is needed to embed the OpenGL Application (PTC CreoView - 3D Application).

When i click into the opengl window, it gets the mouse and keyboard focus to rotate the 3D Model shown in the OpenGL Application.
That's fine. But the problem is, if i go back into the JavaFX Part, the scroll and keyboard focus is not given back to the Java FX GUI.

If i try to type something into a TextBox, or scroll with the wheel, it is not possible, but i clicking works!

I tried to use requestFocus, but nothing works. Only switching to another App can get the focus back.

I am using Windows 7 and JavaFX 2.2.5.

Can anyone tell me what's going on with the Mouse and Keyboard Focus?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2013
Added on Apr 19 2013
2 comments
202 views