jdk/src/share/classes/java/awt/Component.java
changeset 3932 c9cd7ff79037
parent 3928 be186a33df9b
parent 3729 80d0cf73598d
child 3938 ef327bd847c0
equal deleted inserted replaced
3931:81071c37cc91 3932:c9cd7ff79037
  6670                 // It's native.  If the parent is lightweight it
  6670                 // It's native.  If the parent is lightweight it
  6671                 // will need some help.
  6671                 // will need some help.
  6672                 Container parent = this.parent;
  6672                 Container parent = this.parent;
  6673                 if (parent != null && parent.peer instanceof LightweightPeer) {
  6673                 if (parent != null && parent.peer instanceof LightweightPeer) {
  6674                     relocateComponent();
  6674                     relocateComponent();
       
  6675                     if (!isRecursivelyVisible()) {
       
  6676                         peer.setVisible(false);
       
  6677                     }
  6675                 }
  6678                 }
  6676             }
  6679             }
  6677             invalidate();
  6680             invalidate();
  6678 
  6681 
  6679             int npopups = (popups != null? popups.size() : 0);
  6682             int npopups = (popups != null? popups.size() : 0);
  9577                 Component comp = cont.getComponent(i);
  9580                 Component comp = cont.getComponent(i);
  9578                 if (comp != null && comp.isDisplayable() && !comp.isLightweight()) {
  9581                 if (comp != null && comp.isDisplayable() && !comp.isLightweight()) {
  9579                     return comp.getPeer();
  9582                     return comp.getPeer();
  9580                 }
  9583                 }
  9581             }
  9584             }
       
  9585             // traversing the hierarchy up to the closest HW container;
       
  9586             // further traversing may return a component that is not actually
       
  9587             // a native sibling of this component and this kind of z-order
       
  9588             // request may not be allowed by the underlying system (6852051).
       
  9589             if (!cont.isLightweight()) {
       
  9590                 break;
       
  9591             }
  9582 
  9592 
  9583             indexAbove = cont.getSiblingIndexAbove();
  9593             indexAbove = cont.getSiblingIndexAbove();
  9584             cont = cont.getContainer();
  9594             cont = cont.getContainer();
  9585         }
  9595         }
  9586 
  9596