[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] FYI: Fixed Swing painting (again)
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] FYI: Fixed Swing painting (again) |
Date: |
Sun, 25 Sep 2005 23:38:19 +0200 |
Hi Roman,
> 2005-09-22 Roman Kennke <address@hidden>
>
> * javax/swing/JComponent.java
> (paintChildren): If a child component is invisible, skip it.
> Handle the (rare) case when no clip is set as if it's set to the
> child component's bounds. These fixes should make Swing working
> again as before.
> [...]
> Rectangle bounds = children[i].getBounds();
> Rectangle oldClip = g.getClipBounds();
> + if (oldClip == null)
> + oldClip = bounds;
And later you do:
g.setClip(oldClip);
Even when oldClip was originally null.
Cheers,
Mark
signature.asc
Description: This is a digitally signed message part