* 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
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.
+
+2004-02-10 David Jee <djee@redhat.com>
+
* java/awt/GridBagLayout.java
(GridBagLayout): New private field, internalcomptable.
(lookupInternalConstraints): New method.
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();
setLabel(String label)
{
this.label = label;
+ actionCommand = label;
if (peer != null)
{
ButtonPeer bp = (ButtonPeer) peer;
this.visible = true;
if (peer != null)
peer.setVisible(true);
+ invalidate();
}
/**
if (peer != null)
peer.setVisible(false);
this.visible = false;
+ invalidate();
}
/**