diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2004-01-22 00:22:27 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@gcc.gnu.org> | 2004-01-22 00:22:27 +0000 |
commit | 75ef0594a381f1760140e568d08e80fd685274e6 (patch) | |
tree | 5e54c7a23c1182b3550a50578cd14bde8c5763a9 /libjava/java/awt/Component.java | |
parent | ed78a9fd7c562f9fd4df08c3de0a2f9c21c7fe89 (diff) | |
download | gcc-75ef0594a381f1760140e568d08e80fd685274e6.zip gcc-75ef0594a381f1760140e568d08e80fd685274e6.tar.gz gcc-75ef0594a381f1760140e568d08e80fd685274e6.tar.bz2 |
Component.java (show): Set visible to true before showing the peer.
2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/awt/Component.java (show): Set visible to true before
showing the peer.
From-SVN: r76325
Diffstat (limited to 'libjava/java/awt/Component.java')
-rw-r--r-- | libjava/java/awt/Component.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libjava/java/awt/Component.java b/libjava/java/awt/Component.java index 9c93bd0..94b74a6 100644 --- a/libjava/java/awt/Component.java +++ b/libjava/java/awt/Component.java @@ -869,9 +869,14 @@ public abstract class Component */ public void show() { + // We must set visible before showing the peer. Otherwise the + // peer could post paint events before visible is true, in which + // case lightweight components are not initially painted -- + // Container.paint first calls isShowing () before painting itself + // and its children. + this.visible = true; if (peer != null) peer.setVisible(true); - this.visible = true; } /** |