This discussion is archived
2 Replies Latest reply: Apr 25, 2013 6:19 AM by Hank P. RSS

Focus Problem

Hank P. Newbie
Currently Being Moderated

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?



  • Correct Answers - 10 points
  • Helpful Answers - 5 points