--- old/src/share/classes/java/awt/Component.java 2009-08-11 19:21:08.000000000 +0400 +++ new/src/share/classes/java/awt/Component.java 2009-08-11 19:21:07.000000000 +0400 @@ -658,6 +658,14 @@ return objectLock; } + /** + * Indicates if the window has been packed via pack(). + * + * Note that this field belongs to the Window class, but it cannot be + * moved to that class because it is not transient, and therefore must + * stay at the Component class for backward-compatibility purposes. + * The field SHOULD NOT be used anywhere outside of the Window class. + */ boolean isPacked = false; /** @@ -1556,8 +1564,6 @@ */ @Deprecated public void hide() { - isPacked = false; - if (visible) { clearCurrentFocusCycleRootOnHide(); clearMostRecentFocusOwnerOnHide(); @@ -2114,10 +2120,6 @@ this.width = width; this.height = height; - if (resized) { - isPacked = false; - } - boolean needNotify = true; mixOnReshaping(); if (peer != null) {