Sorry, I sent this from my non-list account.
On Tue, 2005-09-13 at 16:18 -0400, Anthony Balkissoon wrote:
> To account for peers' size requirements, Components should be
> invalidated before they are first shown on the screen.  This patch calls
> invalidateTree() when a Window is first shown.
> 
> This fixes bug #23006.
> 
> Patch is pending approval.  Patch is attached.
> 
> 2005-09-13  Anthony Balkissoon  <[EMAIL PROTECTED]>
> 
>       * java/awt/Window.java:
>       (show): Added call to invalidateTree().  If this is the first time the 
>       Window is being shown, its Components should be invalidated, to 
>       account for peers' size requirements.
> 
> --Tony
Index: java/awt/Window.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Window.java,v
retrieving revision 1.54
diff -u -r1.54 Window.java
--- java/awt/Window.java	9 Sep 2005 20:13:32 -0000	1.54
+++ java/awt/Window.java	13 Sep 2005 20:11:01 -0000
@@ -89,7 +89,7 @@
   private transient WindowStateListener windowStateListener;
   private transient GraphicsConfiguration graphicsConfiguration;
 
-  private transient boolean shown;
+  private transient boolean shown = false;
 
   // This is package-private to avoid an accessor method.
   transient Component windowFocusOwner;
@@ -283,7 +283,11 @@
     if (peer == null)
       addNotify();
 
-    // Show visible owned windows.
+    // Invalidate components if this is the first time the window is shown
+    if (!shown)
+      invalidateTree();
+    
+    // Show visible owned windows.    
     synchronized (getTreeLock())
       {
 	Iterator e = ownedWindows.iterator();
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to