From 2cfc09079c92fa5cfe8643097689919359562d02 Mon Sep 17 00:00:00 2001 From: djee Date: Tue, 10 Feb 2004 18:57:22 +0000 Subject: 2004-02-10 David Jee * java/awt/BorderLayout.java (calcCompSize): Invisible components get zero dimensions. * java/awt/Button.java (setLabel): Set actionCommand. * java/awt/Component.java (show): Invalidate component and parent container. (hide): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77613 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/awt/Component.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libjava/java/awt/Component.java') diff --git a/libjava/java/awt/Component.java b/libjava/java/awt/Component.java index 0b1e9612b04..3d2afc9c78b 100644 --- a/libjava/java/awt/Component.java +++ b/libjava/java/awt/Component.java @@ -879,6 +879,7 @@ public abstract class Component this.visible = true; if (peer != null) peer.setVisible(true); + invalidate(); } /** @@ -905,6 +906,7 @@ public abstract class Component if (peer != null) peer.setVisible(false); this.visible = false; + invalidate(); } /** -- cgit v1.2.1