Sun only calls repaint if the component is lightweight.
I am going to commit another mauve test for this.
2006-03-15 Lillian Angel <[EMAIL PROTECTED]>
* java/awt/Component.java
(show): repaint should only be called if the component
isShowing and isLightweight.
Index: java/awt/Component.java
===================================================================
RCS file: /sources/classpath/classpath/java/awt/Component.java,v
retrieving revision 1.105
diff -u -r1.105 Component.java
--- java/awt/Component.java 3 Mar 2006 21:12:19 -0000 1.105
+++ java/awt/Component.java 15 Mar 2006 15:15:09 -0000
@@ -906,7 +906,7 @@
// The JDK repaints the component before invalidating the parent.
// So do we.
- if (isShowing())
+ if (isShowing() && isLightweight())
repaint();
// Invalidate the parent if we have one. The component itself must
// not be invalidated. We also avoid NullPointerException with