[xena] choose by name popup is not closed by focus lost by clicking editor for the first time [rev=max]

This commit is contained in:
Kirill Kalishev
2011-05-12 16:15:25 +04:00
parent 7404e8a526
commit 4554e30ce7
@@ -421,13 +421,16 @@ public abstract class ChooseByNameBase {
});
}
else {
if (e.getOppositeComponent() != null && myList.isShowing() && (e.getOppositeComponent() == myList || SwingUtilities.isDescendingFrom(myList, e.getOppositeComponent()))) {
Component oppositeComponent = e.getOppositeComponent();
if (oppositeComponent != null && !(oppositeComponent instanceof JFrame) &&
myList.isShowing() &&
(oppositeComponent == myList || SwingUtilities.isDescendingFrom(myList, oppositeComponent))) {
return;
}
hideHint();
}
}
}, 200);
}, 200);
}
});
}