--- old/src/share/classes/java/awt/Component.java 2013-04-23 19:12:08.098370600 +0400 +++ new/src/share/classes/java/awt/Component.java 2013-04-23 19:12:07.838355700 +0400 @@ -1051,11 +1051,11 @@ return parent; } - // This method is overriden in the Window class to return null, + // This method is overridden in the Window class to return null, // because the parent field of the Window object contains // the owner of the window, not its parent. Container getContainer() { - return getParent(); + return getParent_NoClientCode(); } /** @@ -8197,7 +8197,7 @@ Container getNativeContainer() { Container p = parent; while (p != null && p.peer instanceof LightweightPeer) { - p = p.getParent_NoClientCode(); + p = p.getContainer(); } return p; }