OpenJDK / valhalla / valhalla
changeset 3729:80d0cf73598d
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 | d4b5b18ac3eb |
children | 81c02474a2c9 |
files | jdk/src/share/classes/java/awt/Component.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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();