Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: FEST-Swing 1.2a2, FEST-Swing 1.2a3, FEST-Swing 1.2a4
-
Fix Version/s: FEST-Swing 1.2rc
-
Component/s: Swing
-
Labels:None
-
Environment:Windows, Java 6 update18
-
Patch Submitted:Yes
-
Number of attachments :
Description
Fest fails to open popup menu on component which is not focusable for some reason.
The problem is in class org.fest.swing.core.BasicRobot. In method showPopupMenu(Component, Point) we invoke private method org.fest.swing.core.BasicRobot#focusAndWaitForFocusGain(Component) and it throws ActionFailureException after a timeout.
I tried to add check for focusability before invoke this method, and it helped.
Please, consider a patch I attached to this JIRA. I hope you'll be able to include fix of this issue to a closest release.
Activity
Alex Ruiz
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Alex Ruiz [ alexruiz ] |
Alex Ruiz
made changes -
| Assignee | Alex Ruiz [ alexruiz ] | Yvonne Wang [ wanghy ] |
Yvonne Wang
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Hi Ivan,
Even though I already "sealed" the branch for the next release (next Monday,) I'll try my best to include your patch in it. I understand this is a high-priority bug.
Many thanks for finding this bug, and for providing a patch!
Cheers,
-Alex