Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Camera.setViewCenter() the view doesn't always update #149

Open
borismattijssen opened this issue Jun 1, 2015 · 0 comments
Open

Comments

@borismattijssen
Copy link

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() 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant