classpath-patches
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]