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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user