diff options
author | David Jee <djee@redhat.com> | 2004-02-10 18:57:22 +0000 |
---|---|---|
committer | David Jee <djee@gcc.gnu.org> | 2004-02-10 18:57:22 +0000 |
commit | 7b38bcac645a40e200bcb270f8857ac7cf73a717 (patch) | |
tree | f982d60aa675d0aa76be5289c71e041f601bb2d5 /libjava/java/awt/BorderLayout.java | |
parent | dcee9e6022afe210005eab5d90ef1c262e8d3205 (diff) | |
download | gcc-7b38bcac645a40e200bcb270f8857ac7cf73a717.zip gcc-7b38bcac645a40e200bcb270f8857ac7cf73a717.tar.gz gcc-7b38bcac645a40e200bcb270f8857ac7cf73a717.tar.bz2 |
2004-02-10 David Jee <djee@redhat.com>
* 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.
From-SVN: r77613
Diffstat (limited to 'libjava/java/awt/BorderLayout.java')
-rw-r--r-- | libjava/java/awt/BorderLayout.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/awt/BorderLayout.java b/libjava/java/awt/BorderLayout.java index 5033bcf..7f2b1a0 100644 --- a/libjava/java/awt/BorderLayout.java +++ b/libjava/java/awt/BorderLayout.java @@ -637,7 +637,7 @@ private static final int PREF = 2; private Dimension calcCompSize(Component comp, int what) { - if (comp == null) + if (comp == null || !comp.isVisible()) return new Dimension(0, 0); if (what == MIN) return comp.getMinimumSize(); |