This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]