You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the Viewer::getDefaultView()::getCamera()::setViewCenter(..., 0, 0); method, the view will not always update. But when I click on the graph it will update and jump to the right view center.
So I think it has something to do with the focus of the panel. When I print the component that has focus before calling setViewCenter (with KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner())), it says some button in my UI has the focus.
So I try to get the focus on the graph before calling setViewCenter with Viewer::getDefaultView()::requestFocus() or panel.requestFocus() (panel is instantiated with Viewer::addDefaultView), but the focus is still on the button.
What am I doing wrong?
Kind regards,
Boris
The text was updated successfully, but these errors were encountered:
Hi,
When I use the
Viewer::getDefaultView()::getCamera()::setViewCenter(..., 0, 0);
method, the view will not always update. But when I click on the graph it will update and jump to the right view center.So I think it has something to do with the focus of the panel. When I print the component that has focus before calling setViewCenter (with
KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner())
), it says some button in my UI has the focus.So I try to get the focus on the graph before calling setViewCenter with
Viewer::getDefaultView()::requestFocus()
orpanel.requestFocus()
(panel is instantiated withViewer::addDefaultView
), but the focus is still on the button.What am I doing wrong?
Kind regards,
Boris
The text was updated successfully, but these errors were encountered: