classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: JComponent optimization


From: Roman Kennke
Subject: Re: [cp-patches] FYI: JComponent optimization
Date: Mon, 10 Oct 2005 12:35:48 +0000

I introduced a slight error, that skipped child components, that were
actually in the current clip and painted all others. Of course, it must
be the other way around, we must skip child components that don't hit
the current clip.

I also added another small fix, that immediately returns from setVisible,
if the actual value does not change. Most importantly this avoids some
revalidations which are usually quite expensive.

2005-10-10  Roman Kennke  <address@hidden>

        * javax/swing/JComponent.java
        (paintChildren): Skip children if their clip _doesn't_ hit the
        current clip.
        (setVisible): Do nothing if the actual value didn't change.

/Roman

Attachment: JComponent.diff
Description: Text Data


reply via email to

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