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
--- 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();