[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qftestJUI] How to check which component has the focus ?
I would like to be able to write checks to verify that the focus is on the expected component (this component is not always editable).
One idea I had was to create a simple class returning the KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner()... so I can get the Component owning the focus.
I could call the class method with Jython... but I would like to compare this java.awt.Component with a component under the "Windows and components"...
How can I do that ?
Any other ideas to check the focus ?
Thanks in advance !