changeset 8976 | 84470d24137d |
parent 5506 | 202f599c92aa |
child 12838 | e51dd337d4dc |
--- a/jdk/src/share/classes/javax/swing/PopupFactory.java Mon Mar 28 18:00:32 2011 +0900 +++ b/jdk/src/share/classes/javax/swing/PopupFactory.java Tue Mar 29 21:02:53 2011 +0400 @@ -203,6 +203,12 @@ popupType = HEAVY_WEIGHT_POPUP; break; } + } else if (c instanceof Window) { + Window w = (Window) c; + if (!w.isOpaque() || w.getOpacity() < 1 || w.getShape() != null) { + popupType = HEAVY_WEIGHT_POPUP; + break; + } } c = c.getParent(); }