jdk/src/share/classes/javax/swing/PopupFactory.java
changeset 12838 e51dd337d4dc
parent 8976 84470d24137d
child 23010 6dadb192ad81
equal deleted inserted replaced
12837:a7d04f276889 12838:e51dd337d4dc
   201                 if (((JComponent)c).getClientProperty(
   201                 if (((JComponent)c).getClientProperty(
   202                             PopupFactory_FORCE_HEAVYWEIGHT_POPUP) == Boolean.TRUE) {
   202                             PopupFactory_FORCE_HEAVYWEIGHT_POPUP) == Boolean.TRUE) {
   203                     popupType = HEAVY_WEIGHT_POPUP;
   203                     popupType = HEAVY_WEIGHT_POPUP;
   204                     break;
   204                     break;
   205                 }
   205                 }
   206             } else if (c instanceof Window) {
       
   207                 Window w = (Window) c;
       
   208                 if (!w.isOpaque() || w.getOpacity() < 1 || w.getShape() != null) {
       
   209                     popupType = HEAVY_WEIGHT_POPUP;
       
   210                     break;
       
   211                 }
       
   212             }
   206             }
   213             c = c.getParent();
   207             c = c.getParent();
   214         }
   208         }
   215 
   209 
   216         return popupType;
   210         return popupType;