Sun doesn't call repaint after each component is added to a container.
I will commit a mauve test for this.

2006-03-14  Lillian Angel  <[EMAIL PROTECTED]>

        * java/awt/Container.java
        (addImpl): Removed call to repaint. No need to repaint here.

Index: java/awt/Container.java
===================================================================
RCS file: /sources/classpath/classpath/java/awt/Container.java,v
retrieving revision 1.84
diff -u -r1.84 Container.java
--- java/awt/Container.java	4 Mar 2006 11:33:15 -0000	1.84
+++ java/awt/Container.java	14 Mar 2006 16:47:10 -0000
@@ -388,10 +388,6 @@
         ContainerListener[] listeners = getContainerListeners();
         for (int i = 0; i < listeners.length; i++)
           listeners[i].componentAdded(ce);
-
-        // Repaint this container.
-        repaint(comp.getX(), comp.getY(), comp.getWidth(),
-                comp.getHeight());
       }
   }
 

Reply via email to