EA-83059 - IAE: PopupComponent$DialogPopupWrapper.<init>

This commit is contained in:
Sergey Simonchik
2016-05-27 00:53:20 +03:00
parent aaa87fd3c1
commit 5310cb09b3
2 changed files with 2 additions and 2 deletions
@@ -445,7 +445,7 @@ public class AbstractPopup implements JBPopup {
window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow();
}
if (window != null) {
if (window != null && window.isShowing()) {
showInCenterOf(window);
}
}
@@ -111,7 +111,7 @@ public interface PopupComponent {
public DialogPopupWrapper(Component owner, Component content, int x, int y, JBPopup jbPopup) {
if (!owner.isShowing()) {
throw new IllegalArgumentException("Popup owner must be showing");
throw new IllegalArgumentException("Popup owner must be showing, owner " + owner.getClass());
}
final Window wnd = UIUtil.getWindow(owner);