changeset 1617:d5ac8fb96d13

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
author anthony
date Fri, 28 Aug 2009 19:34:00 +0400
parents 911a82b4901f
children d755ace580b2
files src/share/classes/java/awt/Component.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Component.java	Thu Aug 27 17:06:23 2009 +0400
+++ b/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();