Vaadin Checking which component has focus

focus, java, vaadin

Solution

No, at least not directly (which is surprising). Please follow the links and discussions indicated in the thread on Vaadin forum.

You can go around it, but it will require certain amount of work. A starting point is the `Focusable` interface. Basically, you should capture all focus events in all the components.

Problem

Is there a way to find out which component has the actual focus in a Vaadin window!?

Original source