classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: BasicScrollBarUI fixlet


From: Roman Kennke
Subject: [cp-patches] FYI: BasicScrollBarUI fixlet
Date: Tue, 18 Oct 2005 14:04:32 +0000

This removes a repaint call in BasicScrollBarUI.PropertyChangeHandler.

For all Swing hackers: As a general rule, do not put repaint and
revalidate calls in event handlers. When a property change must trigger
a repaint and/or revalidate, then this should happen in the
corresponding setter method. This makes the code more clear and avoids
ugly eventqueue loops.

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

        * javax/swing/plaf/basic/BasicScrollBarUI.java
        (PropertyChangeHandler.propertyChange): Removed repaint call.


/Roman

Attachment: BasicScrollBarUI.diff
Description: Text Data


reply via email to

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