6689468: test/closed/java/awt/Component/VisibleHwInLwContTest/VisibleHwInLwContTest.html fails
authoranthony
Fri, 28 Aug 2009 19:34:00 +0400
changeset 3729 80d0cf73598d
parent 3728 d4b5b18ac3eb
child 3730 81c02474a2c9
6689468: test/closed/java/awt/Component/VisibleHwInLwContTest/VisibleHwInLwContTest.html fails Summary: The addNotify() checks whether the component is actually hidden, and hides the peer appropriately if needed Reviewed-by: art, dcherepanov
jdk/src/share/classes/java/awt/Component.java
--- a/jdk/src/share/classes/java/awt/Component.java	Thu Aug 27 17:06:23 2009 +0400
+++ b/jdk/src/share/classes/java/awt/Component.java	Fri Aug 28 19:34:00 2009 +0400
@@ -6665,6 +6665,9 @@
                 Container parent = this.parent;
                 if (parent != null && parent.peer instanceof LightweightPeer) {
                     relocateComponent();
+                    if (!isRecursivelyVisible()) {
+                        peer.setVisible(false);
+                    }
                 }
             }
             invalidate();