This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gui] [PATCH] Small fix to Container.remove()
- From: David Jee <djee at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 31 May 2004 10:22:28 -0400
- Subject: [gui] [PATCH] Small fix to Container.remove()
Hello,
I committed the following patch to the java-gui-branch. It's a small
fix for Container.remove(), and it sets the removed component's
visibility to false after removing it.
-David Jee
2004-05-31 David Jee <djee@redhat.com>
* java/awt/Container.java
(remove): Set component visibility to false after removing it.
Index: java/awt/Container.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Container.java,v
retrieving revision 1.34.2.9
diff -u -r1.34.2.9 Container.java
--- java/awt/Container.java 25 May 2004 16:36:22 -0000 1.34.2.9
+++ java/awt/Container.java 31 May 2004 14:14:47 -0000
@@ -419,6 +419,7 @@
layoutMgr.removeLayoutComponent(r);
r.parent = null;
+ r.setVisible(false);
// Post event to notify of adding the container.
ContainerEvent ce = new ContainerEvent(this,