[Top][All Lists]

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

[commit-cp] classpath java/awt/ java/awt/Cont...

From: Roman Kennke
Subject: [commit-cp] classpath java/awt/ java/awt/Cont...
Date: Wed, 20 Sep 2006 09:12:26 +0000

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Roman Kennke <rabbit78> 06/09/20 09:12:26

Modified files:
        java/awt       : 
        .              : ChangeLog 

Log message:
        2006-09-20  Roman Kennke  <address@hidden>
                * java/awt/
                (addNotify): Invalidate here. Fetch peer font.
                (getFont): Delegate to helper method, to protect from
                overriding client code. Lock the tree while fetching the font.
                (getFontImpl): New helper method. Moved code from getFont() in
                (removeNotify): Nullify peerFont too.
                (setFont): Synchronize on tree and component to avoid threading
                issues. Update the peerFont correctly.
                (validate): Update the peer font if necessary, before 
                (getGraphics): Revert to recursive graphics fetching.
                Set component font on the Graphics object.
                (translateEvent): Removed unnecessary cast.
                * java/awt/
                (invalidateTree): Made final and private. Made implementation
                slightly more efficient.
                (setFont): Get old and new font via getFont() to account for
                the real font, and only invalidate the tree when they are not
                the same and not equal.
                (visitChild): Set the font of the child on the component 
                * java/awt/
                (setMenuBar): Create local reference of peer for thread safety.
                Only call simple invalidate, not invalidateTree().


reply via email to

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