jdk/src/share/classes/java/awt/Container.java
changeset 2644 63360b4ca6c4
parent 2463 c90a9d542c79
child 2647 ea80a312972e
equal deleted inserted replaced
2643:ea218b1a2000 2644:63360b4ca6c4
  3975         }
  3975         }
  3976         for (int index = fromZorder; index <= toZorder; index++) {
  3976         for (int index = fromZorder; index <= toZorder; index++) {
  3977             Component comp = getComponent(index);
  3977             Component comp = getComponent(index);
  3978             if (!comp.isLightweight()) {
  3978             if (!comp.isLightweight()) {
  3979                 comp.applyCurrentShape();
  3979                 comp.applyCurrentShape();
  3980                 if (comp instanceof Container && ((Container)comp).getLayout() == null) {
  3980             }
  3981                     ((Container)comp).recursiveApplyCurrentShape();
  3981             if (comp instanceof Container &&
  3982                 }
       
  3983             } else if (comp instanceof Container &&
       
  3984                     ((Container)comp).hasHeavyweightDescendants()) {
  3982                     ((Container)comp).hasHeavyweightDescendants()) {
  3985                 ((Container)comp).recursiveApplyCurrentShape();
  3983                 ((Container)comp).recursiveApplyCurrentShape();
  3986             }
  3984             }
  3987         }
  3985         }
  3988     }
  3986     }