Mailing list - Entries of 2005

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[qftestJUI] How to check which component has the focus ?

  • Subject: [qftestJUI] How to check which component has the focus ?
  • From: "Philippe Gaudin" <Philippe.Gaudin@?.com>
  • Date: Tue, 18 Oct 2005 10:21:40 +0200

Title: Message
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 !
Philippe Gaudin

Videos Downloads Documentation Buy Free Trial